Why do search returns only 20 results?

thebravoman's Avatar

thebravoman

25 Feb, 2015 11:09 PM

My code in the controller is:

search(Riddle::Query.escape(query), :with => with,:field_weights => foo_bar)

and when I render it I get only 20 results paginated.

  1. Support Staff 1 Posted by Pat Allan on 25 Feb, 2015 11:14 PM

    Pat Allan's Avatar

    This is how Sphinx behaves - it always paginates results. Indeed, there's no way to disable that, but you can ask for very big page sizes if that's preferred.
    http://pat.github.io/thinking-sphinx/searching.html#pagination

    Cheers

    Pat

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac