DisMax preserves a fair amount of syntax. It isn't a pure text
query.

We have a small client library (written before solrj) that
escapes all the stuff that Solr doesn't. If you are already
lowercasing queries, then you can fix AND, OR, and NOT by
replacing them with their lowercase equivalents.

wunder

On 4/24/08 6:57 AM, "Ryan McKinley" <[EMAIL PROTECTED]> wrote:

> 
> check the dismax handler -- it expects words to search for, not a
> query syntax
> 
> 
> On Apr 24, 2008, at 9:53 AM, Geoffrey Young wrote:
>> 
>> 
>> Otis Gospodnetic wrote:
>>> Not in one place and documented.  The place to look are query
>>> parsers, but things like AND OR NOT TO are the ones to look out for.
>> 
>> this seems like something solr ought to handle gracefully on the
>> backend for me - if I need to write logic to make sure a malicious
>> query for "AND NOT" all by itself (in all caps) doesn't make solr
>> implode then so does everyone else...
>> 
>> --Geoff
> 

Reply via email to