Empty query string returns empty result set

Kasper's Avatar


01 Mar, 2013 04:09 PM

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. Support Staff 1 Posted by Pat Allan on 02 Mar, 2013 12:53 AM

    Pat Allan's Avatar

    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?



  2. 2 Posted by Kasper Weibel N... on 02 Mar, 2013 02:21 PM

    Kasper Weibel Nielsen-Refs's Avatar

    Hi Pat
    The app name is lawyeah-staging, Server: prague —

    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. Support Staff 3 Posted by Pat Allan on 03 Mar, 2013 10:10 AM

    Pat Allan's Avatar

    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. 4 Posted by Kasper Weibel N... on 03 Mar, 2013 08:39 PM

    Kasper Weibel Nielsen-Refs's Avatar

    :extended did the trick.

    My server version was also slightly off


      version: '0.9.9'
      enable_star: 1
      min_infix_len: 1

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

  5. Support Staff 5 Posted by Pat Allan on 03 Mar, 2013 11:32 PM

    Pat Allan's Avatar

    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

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


? 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