tag:support.flying-sphinx.com,2011-01-05:/discussions/questions/145-empty-query-string-returns-empty-result-setFlying Sphinx: Discussion 2016-08-11T01:33:20Ztag:support.flying-sphinx.com,2011-01-05:Comment/254710252013-03-02T00:53:43Z2013-03-02T00:53:43ZEmpty query string returns empty result set<div><p>Hi Kasper</p>
<p>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?</p>
<p>Cheers</p>
<p>Pat</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/254710252013-03-02T14:21:56Z2013-03-02T14:21:56ZEmpty query string returns empty result set<div><p>Hi Pat<br>
The app name is lawyeah-staging, Server: prague —<br>
ec2-23-22-176-191.compute-1.amazonaws.com</p>
<p>Log of query on my development setup</p>
<p>Query: ''<br>
Params: {:with=>{:role_id=>2}, :order=>\"@relevance
DESC\",<br>
:match_mode=>:any, :field_weights=>{:user_name=>10,
:firm=>5}, :star=>true, :conditions=>{}}</p>
<p>Log from lawyeah-staging:</p>
<p>Query: ''<br>
Params: {:with=>{:role_id=>2}, :order=>\"@relevance
DESC\",<br>
:match_mode=>:any, :field_weights=>{:user_name=>10,
:firm=>5}, :star=>true, :conditions=>{}}</p>
<p>The query is the same on both setups</p></div>Kasper Weibel Nielsen-Refstag:support.flying-sphinx.com,2011-01-05:Comment/254710252013-03-03T10:10:58Z2013-03-03T10:10:58ZEmpty query string returns empty result set<div><p>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?</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/254710252013-03-03T20:39:44Z2013-03-03T20:39:44ZEmpty query string returns empty result set<div><p>:extended did the trick.</p>
<p>My server version was also slightly off</p>
<p>sphinx.yml:</p>
<p>development:<br>
version: '0.9.9' enable_star: 1 min_infix_len: 1</p>
<p>staging:<br>
version: '2.1.0' port: 9333 enable_star: 1 min_infix_len: 1</p></div>Kasper Weibel Nielsen-Refstag:support.flying-sphinx.com,2011-01-05:Comment/254710252013-03-03T23:32:52Z2013-03-03T23:32:52ZEmpty query string returns empty result set<div><p>Good to know that helped. Any further issues, do let me
know.</p>
<p>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.</p></div>Pat Allan