fix documentation

This commit is contained in:
byte[] 2020-01-22 08:51:27 -05:00
parent 63b2a146ec
commit dd915aa477

View file

@ -67,28 +67,28 @@ table.table
td Literal td Literal
td Matches the author of this post. Anonymous authors will never match this term. td Matches the author of this post. Anonymous authors will never match this term.
td td
code = link "author:Joey", to: Routes.post_path(@conn, :index, cq: "author:Joey") code = link "author:Joey", to: Routes.post_path(@conn, :index, pq: "author:Joey")
tr tr
td td
code body code body
td Full Text td Full Text
td Matches the body of this post. This is the default field. td Matches the body of this post. This is the default field.
td td
code = link "body:test", to: Routes.post_path(@conn, :index, cq: "body:test") code = link "body:test", to: Routes.post_path(@conn, :index, pq: "body:test")
tr tr
td td
code created_at code created_at
td Date/Time Range td Date/Time Range
td Matches the creation time of this post. td Matches the creation time of this post.
td td
code = link "created_at:2015", to: Routes.post_path(@conn, :index, cq: "created_at:2015") code = link "created_at:2015", to: Routes.post_path(@conn, :index, pq: "created_at:2015")
tr tr
td td
code id code id
td Numeric Range td Numeric Range
td Matches the numeric surrogate key for this post. td Matches the numeric surrogate key for this post.
td td
code = link "id:1000000", to: Routes.post_path(@conn, :index, cq: "id:1000000") code = link "id:1000000", to: Routes.post_path(@conn, :index, pq: "id:1000000")
tr tr
td td
code my code my
@ -97,32 +97,39 @@ table.table
code> my:posts code> my:posts
' matches posts you have posted if you are signed in. ' matches posts you have posted if you are signed in.
td td
code = link "my:posts", to: Routes.post_path(@conn, :index, cq: "my:posts") code = link "my:posts", to: Routes.post_path(@conn, :index, pq: "my:posts")
tr tr
td td
code subject code subject
td Full Text td Full Text
td Matches the title of the topic. td Matches the title of the topic.
td td
code = link "subject:time wasting thread", to: Routes.post_path(@conn, :index, cq: "subject:time wasting thread") code = link "subject:time wasting thread", to: Routes.post_path(@conn, :index, pq: "subject:time wasting thread")
tr tr
td td
code topic_id code topic_id
td Literal td Literal
td Matches the numeric surrogate key for the topic this post belongs to. td Matches the numeric surrogate key for the topic this post belongs to.
td td
code = link "topic_id:7000", to: Routes.post_path(@conn, :index, cq: "topic_id:7000") code = link "topic_id:7000", to: Routes.post_path(@conn, :index, pq: "topic_id:7000")
tr
td
code topic_position
td Numeric Range
td Matches the offset from the beginning of the topic of this post. Positions begin at 0.
td
code = link "topic_position:0", to: Routes.post_path(@conn, :index, pq: "topic_position:0")
tr tr
td td
code updated_at code updated_at
td Date/Time Range td Date/Time Range
td Matches the creation or last edit time of this post. td Matches the creation or last edit time of this post.
td td
code = link "updated_at.gte:2 weeks ago", to: Routes.post_path(@conn, :index, cq: "updated_at.gte:2 weeks ago") code = link "updated_at.gte:2 weeks ago", to: Routes.post_path(@conn, :index, pq: "updated_at.gte:2 weeks ago")
tr tr
td td
code user_id code user_id
td Literal td Literal
td Matches posts with the specified user_id. Anonymous users will never match this term. td Matches posts with the specified user_id. Anonymous users will never match this term.
td td
code = link "user_id:211190", to: Routes.post_path(@conn, :index, cq: "user_id:211190") code = link "user_id:211190", to: Routes.post_path(@conn, :index, pq: "user_id:211190")