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?
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
Support Staff 1 Posted by Pat Allan on 02 Mar, 2013 12:53 AM
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 Posted by Kasper Weibel N... on 02 Mar, 2013 02:21 PM
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
Support Staff 3 Posted by Pat Allan on 03 Mar, 2013 10:10 AM
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 Posted by Kasper Weibel N... on 03 Mar, 2013 08:39 PM
: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
Support Staff 5 Posted by Pat Allan on 03 Mar, 2013 11:32 PM
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.