Re: QueryParser and BooleanQuery

2012-07-26 Thread Deepak Shakya
Hi Trejkaz, I am using the Standard Analyzer for my indexing. Can you provide an example with which I can use the BooleanQuery to add both the fields in the same forms and yet the documents are searched? I would be really grateful if you can provide example for parsing the text as well which is p

Re: QueryParser and BooleanQuery

2012-07-23 Thread Trejkaz
On Mon, Jul 23, 2012 at 10:16 PM, Deepak Shakya wrote: > Hey Jack, > > Can you let me know how should I do that? I am using the Lucene 3.6 version > and I dont see any parse() method for StandardAnalyzer. In your case, presumably at indexing time you should be using a PerFieldAnalyzerWrapper with

Re: QueryParser and BooleanQuery

2012-07-23 Thread Ian Lea
ssage- From: Deepak Shakya >> Sent: Sunday, July 22, 2012 9:35 PM >> To: java-user@lucene.apache.org >> Subject: Re: QueryParser and BooleanQuery >> >> >> I tried changing the case to lower case, but still the BooleanQuery doesn't >> return any documents. >

Re: QueryParser and BooleanQuery

2012-07-23 Thread Deepak Shakya
Sunday, July 22, 2012 9:35 PM > To: java-user@lucene.apache.org > Subject: Re: QueryParser and BooleanQuery > > > I tried changing the case to lower case, but still the BooleanQuery doesn't > return any documents. > > I see that the text "/blank" is converte

Re: QueryParser and BooleanQuery

2012-07-22 Thread Jack Krupansky
-Original Message- From: Deepak Shakya Sent: Sunday, July 22, 2012 9:35 PM To: java-user@lucene.apache.org Subject: Re: QueryParser and BooleanQuery I tried changing the case to lower case, but still the BooleanQuery doesn't return any documents. I see that the text "

Re: QueryParser and BooleanQuery

2012-07-22 Thread Deepak Shakya
terms for BooleanQuery - > Term("cs-method", "GET") should be "Term("cs-method", "get")". > > StandardAnalyzer is doing the lower-casing. > > -- Jack Krupansky > > -Original Message- From: Deepak Shakya > Sent: Sunday,

Re: QueryParser and BooleanQuery

2012-07-22 Thread Jack Krupansky
- Jack Krupansky -Original Message- From: Deepak Shakya Sent: Sunday, July 22, 2012 10:17 AM To: java-user@lucene.apache.org Subject: QueryParser and BooleanQuery Hi, I have following dataset indexed in Lucene. 2010-04-21 02:24:01 GET /blank 200 120 2010-04-21 02:24:01 GET /US/registra

QueryParser and BooleanQuery

2012-07-22 Thread Deepak Shakya
Hi, I have following dataset indexed in Lucene. 2010-04-21 02:24:01 GET /blank 200 120 2010-04-21 02:24:01 GET /US/registrationFrame 200 605 2010-04-21 02:24:02 GET /US/kids/boys 200 785 2010-04-21 02:24:02 POST /blank 304 56 2010-04-21 02:24:04 GET /blank 304 233 2010-04-21 02:24:04 GET /blank 50