Thar example string means our query is BooleanQuery containing
BooleanQuerys.

I am wondering how to write a complicated BooleanQuery for dismax, like (A
or B or C) and (D or E)

Or I have to use Lucene query parser.

2011/1/20 Lalit Kumar 4 <lkum...@sapient.com>

>
> Sent on my BlackBerry® from Vodafone
>
> -----Original Message-----
> From: Ahmet Arslan <iori...@yahoo.com>
> Date: Thu, 20 Jan 2011 10:43:46
> To: solr-user@lucene.apache.org<solr-user@lucene.apache.org>
> Reply-To: "solr-user@lucene.apache.org" <solr-user@lucene.apache.org>
> Subject: Re: Which QueryParser to use
>
> > Hi all
> >     We are planning to move our search core from
> > Lucene library to Solr, and
> > we are new here.
> >
> >  We have a question :which parser we should choose?
> >
> > Our original query for Lucene is kinda of complicated
> > Ex: *+((name1:A name2:B)^1000  (category1:C ^100
> > category:D ^10) ^100)
> > +(location1:E location2:F location3:G)~2*
> >
> > Does the *dismax *query parser can handle this case, what's
> > the alternative?
> >
> > Or we can still use the *lucene *query parser without
> > setMinimumNumberShouldMatch,
> > which is not involved in lucene query parser.
>
> As I understand you were constructing your queries programmatically,
> without using Lucene's QueryParser, right? If yes how were you handling
> analysis of query terms? Can you tell the types of these fields
> (location,name)?
>
>
>
>

Reply via email to