tag:support.flying-sphinx.com,2011-01-05:/discussions/questions/209-using-and-and-or-in-searchFlying Sphinx: Discussion 2018-10-19T03:09:29Ztag:support.flying-sphinx.com,2011-01-05:Comment/293055932013-10-10T00:11:27Z2013-10-10T00:11:27Zusing and and or in search<div><p>Hi Jonas</p>
<p>I'm afraid Sphinx doesn't have any settings for that…
you'll need to gsub through your search queries to make those
changes yourself. I've done it before in an app I've helped develop
(insisting on AND and OR in uppercase):</p>
<pre>
<code>params[:query].gsub(/\s+OR\s+/, ' | ').gsub(/\s+AND\s+/, ' ')</code>
</pre>
<p>ANDs are implicit in Sphinx, so you don't actually need to
change it to &.</p>
<p>Hope this helps.</p>
<p>Pat</p></div>Pat Allantag:support.flying-sphinx.com,2011-01-05:Comment/293055932013-10-16T12:27:33Z2013-10-16T12:27:33Zusing and and or in search<div><p>Thanks Pat :-)</p></div>jonasholstein