Oops, there was an error evaluating your query:
<%= assigns[:error] %><% true -> %>
No posts found!
<% end %>
If you do not specify a field to search over, the search engine will
search for posts with a body that is similar to the query's
word stems
. For example, posts containing the words
winged humanization
,
wings
, and
spread wings
would all be found by a search for
wing
, but
sewing
would not be.
Field Selector | Type | Description | Example |
---|---|---|---|
author
|
Literal | Matches the author of this post. Anonymous authors will never match this term. |
<%= link("author:Joey", to: ~p"/posts?#{[pq: "author:Joey"]}") %>
|
body
|
Full Text | Matches the body of this post. This is the default field. |
<%= link("body:test", to: ~p"/posts?#{[pq: "body:test"]}") %>
|
created_at
|
Date/Time Range | Matches the creation time of this post. |
<%= link("created_at:2015", to: ~p"/posts?#{[pq: "created_at:2015"]}") %>
|
id
|
Numeric Range | Matches the numeric surrogate key for this post. |
<%= link("id:1000000", to: ~p"/posts?#{[pq: "id:1000000"]}") %>
|
my
|
Meta |
my:posts
matches posts you have posted if you are signed in.
|
<%= link("my:posts", to: ~p"/posts?#{[pq: "my:posts"]}") %>
|
subject
|
Full Text | Matches the title of the topic. |
<%= link("subject:time wasting thread", to: ~p"/posts?#{[pq: "subject:time wasting thread"]}") %>
|
topic_id
|
Literal | Matches the numeric surrogate key for the topic this post belongs to. |
<%= link("topic_id:7000", to: ~p"/posts?#{[pq: "topic_id:7000"]}") %>
|
topic_position
|
Numeric Range | Matches the offset from the beginning of the topic of this post. Positions begin at 0. |
<%= link("topic_position:0", to: ~p"/posts?#{[pq: "topic_position:0"]}") %>
|
updated_at
|
Date/Time Range | Matches the creation or last edit time of this post. |
<%= link("updated_at.gte:2 weeks ago", to: ~p"/posts?#{[pq: "updated_at.gte:2 weeks ago"]}") %>
|
user_id
|
Literal | Matches posts with the specified user_id. Anonymous users will never match this term. |
<%= link("user_id:211190", to: ~p"/posts?#{[pq: "user_id:211190"]}") %>
|
forum
|
Literal | Matches the short name for the forum this post belongs to. |
<%= link("forum:meta", to: ~p"/posts?#{[pq: "forum:meta"]}") %>
|