Empty query string returns empty result set

When I submit an empty query to Flying Sphinx I get an empty result set back. On my development setup with thinking Sphinx I get the whole index back. Is the empty result set the intended behaviour for FS?

  1. Hi Kasper

    This certainly isn't the expected behaviour - Sphinx on Flying Sphinx should behave the same as Sphinx on your machine. Can you talk me through the query you're running, and perhaps the app name so I can check the status of Sphinx on the FS servers?

    Cheers

    Pat

  2. Hi Pat
    The app name is lawyeah-staging, Server: prague —
    ec2-23-22-176-191.compute-1.amazonaws.com

    Log of query on my development setup

    Query: ''
    Params: {:with=>{:role_id=>2}, :order=>\"@relevance DESC\",
    :match_mode=>:any, :field_weights=>{:user_name=>10, :firm=>5},
    :star=>true, :conditions=>{}}

    Log from lawyeah-staging:

    Query: ''
    Params: {:with=>{:role_id=>2}, :order=>\"@relevance DESC\",
    :match_mode=>:any, :field_weights=>{:user_name=>10, :firm=>5},
    :star=>true, :conditions=>{}}

    The query is the same on both setups

  3. Can't spot anything odd on the server. What version of Sphinx are you using locally? And what happens if you change the match_mode to :extended or :all?

  4. :extended did the trick.

    My server version was also slightly off

    sphinx.yml:

    development:
      version: '0.9.9'
      enable_star: 1
      min_infix_len: 1

    staging:
      version: '2.1.0'
      port: 9333
      enable_star: 1
      min_infix_len: 1

  5. Good to know that helped. Any further issues, do let me know.

    Also it's worth noting: 2.1.0-beta is actually older than 2.0.x releases (Sphinx version numbering is a little confusing), so if you want the latest Sphinx, 2.0.6 is currently the newest stable release.

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