Thanks Erick. Using parentheses works. 

With parentheses, the query,q=field1: (this is a good string) is parsed as 
follows :

+field1:this +field1:good +field1:string

Is that ok to do. 

Thanks,
Sandhya

-----Original Message-----
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: Tuesday, April 20, 2010 4:16 AM
To: solr-user@lucene.apache.org
Subject: Re: Help using boolean operators

?id you try parenthesizing:
field1:(This is a good string)

You can try lots of things easily by going to
http://localhost:8983/solr/admin/form.jsp
and clicking the "debug enable" checkbox...

HTH
Erick

On Mon, Apr 19, 2010 at 12:23 PM, MitchK <mitc...@web.de> wrote:

>
> Erick,
>
> I am a little bit confused, because I wasn't aware of this fact (and have
> never noticed any wrong behaviour... maybe because I used the
> dismax-handler).
> How should I search for
> field1: This is a good string
> without doing something like
> field1:this field1:is ... ?
> If I quote the whole thing, Solr would search for the whole phrase (and
> only
> the whole phrase), or am I wrong?
>
> I would test it, if I can, but unfortunately it's not possible at the
> moment.
>
> Thank you!
>
> Mitch
> --
> View this message in context:
> http://n3.nabble.com/Help-using-boolean-operators-tp729102p730051.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to