Browse files

And covering the :populate option on the searching page as well.

  • Loading branch information...
1 parent d3be588 commit 6485170156375bed1990780e4f78af20217f347f @pat pat committed Jan 3, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 ts/en/searching.textile
8 ts/en/searching.textile
@@ -433,3 +433,11 @@ Thinking Sphinx also accepts the following advanced Sphinx arguments:
* "@:max_query_time@":
Additionally, Thinking Sphinx accepts @:comment@, as the search's comment (which is printed in the query log), and @:sql_order@, which is passed through to the SQL query to instantiate the ActiveRecord objects. The latter might be useful if Sphinx's data isn't quite accurate for sorting (as can be the case with ordinal attributes).
+One other option - to avoid lazily loading search results and make sure Thinking Sphinx processes the search query immediately, is the @:populate@ option:
+{% highlight ruby %} 'pancakes', :populate => true
+{% endhighlight %}
+This is particularly useful to ensure exceptions are raised where you expect them to.

0 comments on commit 6485170

Please sign in to comment.