Re: Which QueryParser to use

2011-01-20 Thread kun xiong
Okey, thanks very much. 2011/1/21 Ahmet Arslan > > We construct our lucene query after certain analysis(ex : > > words > > segmentation, category identification). > > By analysis, I referring charfilter(s)+tokenizer+tokenfilter(s) > combination. > > > Do you mean we > > plugin those analysis > >

Re: Which QueryParser to use

2011-01-20 Thread Ahmet Arslan
> We construct our lucene query after certain analysis(ex : > words > segmentation, category identification). By analysis, I referring charfilter(s)+tokenizer+tokenfilter(s) combination. > Do you mean we > plugin those analysis > logic and query construction part onto solr, and solr takes > the

Re: Which QueryParser to use

2011-01-20 Thread Jonathan Rochkind
On 1/20/2011 1:42 AM, kun xiong wrote: 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. You can't do it with dismax. You might

Re: Which QueryParser to use

2011-01-20 Thread kun xiong
Thanks a lot for your reply.That was very helpful. We construct our lucene query after certain analysis(ex : words segmentation, category identification). Do you mean we plugin those analysis logic and query construction part onto solr, and solr takes the very beginning input. Kun 2011/1/20 Ahme

Re: Which QueryParser to use

2011-01-20 Thread Ahmet Arslan
> We construct our query by Lucene API > before, as BooleanQuery, TermQuery > those kind of things. Okey, it seems that your field are not analyzed and you don't do any analysis while construction of your query by Lucene API. Correct? Then you can use your existing Java code directly inside a s

Re: Which QueryParser to use

2011-01-19 Thread kun xiong
dafone > > -Original Message- > From: Ahmet Arslan > Date: Thu, 20 Jan 2011 10:43:46 > To: solr-user@lucene.apache.org > Reply-To: "solr-user@lucene.apache.org" > Subject: Re: Which QueryParser to use > > > Hi all > > We are planning to move our search

Re: Which QueryParser to use

2011-01-19 Thread Lalit Kumar 4
Sent on my BlackBerry® from Vodafone -Original Message- From: Ahmet Arslan Date: Thu, 20 Jan 2011 10:43:46 To: solr-user@lucene.apache.org Reply-To: "solr-user@lucene.apache.org" Subject: Re: Which QueryParser to use > Hi all >     We are planning to move our

Re: Which QueryParser to use

2011-01-19 Thread kun xiong
We construct our query by Lucene API before, as BooleanQuery, TermQuery those kind of things. The string I provided is value from Query.toString() methord. Type are all String. 2011/1/20 Ahmet Arslan > > Hi all > > We are planning to move our search core from > > Lucene library to Solr, and

Re: Which QueryParser to use

2011-01-19 Thread Ahmet Arslan
> 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)