Re: Querying multiple fields in a document

2007-02-25 Thread Nicolas Lalevée
Le dimanche 25 février 2007 12:35, Laxmilal Menaria a écrit : > Hi, i think you will use MultiSearcher and create a field and Value array > for that, that will solve your problem.. I don't know what was your issue Laxmilal, but Ruchika just need a simple query : "+name:bob +subject:maths". Nicol

Re: Querying multiple fields in a document

2007-02-25 Thread Laxmilal Menaria
Hi, i think you will use MultiSearcher and create a field and Value array for that, that will solve your problem.. thanks On 2/25/07, ruchi thakur <[EMAIL PROTECTED]> wrote: Hello, I am new to Lucene. I have a document with 3 fields - name,subject,rollno I want to search on the 2 field name

Re: querying multiple fields

2005-06-22 Thread Erik Hatcher
On Jun 22, 2005, at 2:02 PM, George Abraham wrote: Erik, That worked like a charm. It seems to me that reading up on the different analyzers would solve a lot of questions in my mind. It would solve a lot of folks questions! I find the analysis part of Lucene fascinating. The really inter

Re: querying multiple fields

2005-06-22 Thread George Abraham
Erik, That worked like a charm. It seems to me that reading up on the different analyzers would solve a lot of questions in my mind. Unfortunately your book has not arrived yet from Amazon. Aarrgh! Thanks a ton! George > Your analyzer is eating the ImageExistsBit:1 because "1" returns no > tokens

Re: querying multiple fields

2005-06-22 Thread Erik Hatcher
On Jun 22, 2005, at 1:24 PM, George Abraham wrote: Otis, I think MultiFieldQueryParser (if I am not mistaken) uses the same query string to search multiple fields. Let me know if it is otherwise. Erik, Let me see if I can answer those questions. Here are some code snippets, by the way. FOR INDE

Re: querying multiple fields

2005-06-22 Thread George Abraham
Otis, I think MultiFieldQueryParser (if I am not mistaken) uses the same query string to search multiple fields. Let me know if it is otherwise. Erik, Let me see if I can answer those questions. Here are some code snippets, by the way. FOR INDEX IndexWriter writer = new IndexWriter(indexDir, new

Re: querying multiple fields

2005-06-22 Thread Otis Gospodnetic
George, You can use MultiFieldQueryParser instead of QueryParser. Otis --- George Abraham <[EMAIL PROTECTED]> wrote: > All, > Forgive me for the basic question. When you are querying multiple > fields using QueryParser, what is the exact code? > > I tried QueryParser.parse(queryString, "Searc

Re: querying multiple fields

2005-06-22 Thread Erik Hatcher
On Jun 22, 2005, at 10:49 AM, George Abraham wrote: All, Forgive me for the basic question. When you are querying multiple fields using QueryParser, what is the exact code? I tried QueryParser.parse(queryString, "SearchTerms", analyzer) where queryString was "SearchTerms:visnu temple ImageExis