Why do search returns only 20 results?

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. 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 only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

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

Recent Discussions