Re: Optimum way to find all document without particular field

2009-03-04 Thread Daniel Noll
Chris Lu wrote: Allahbaksh, If you ONLY want to find all document with a particular field that is not null, you can loop through the TermEnum and TermDocs to find all the document ids. But this can not easily be combined with other queries. Surely this would be equivalent to a PrefixQuery w

Re: Optimum way to find all document without particular field

2009-03-04 Thread Erick Erickson
> H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > -Original Message- > > From: shashi@gmail.com [mailto:shashi@gmail.com] On Behalf Of > > Shashi Kant > > Sent: Wednesday, March 04, 2009 7:31 PM > >

RE: Optimum way to find all document without particular field

2009-03-04 Thread Uwe Schindler
://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: shashi@gmail.com [mailto:shashi@gmail.com] On Behalf Of > Shashi Kant > Sent: Wednesday, March 04, 2009 7:31 PM > To: java-user@lucene.apache.org > Subject: Re: Optimum way to find all document

Re: Optimum way to find all document without particular field

2009-03-04 Thread Shashi Kant
A simple solution would be to store the string "NULL" instead of null and then query. On Wed, Mar 4, 2009 at 1:26 PM, Chris Lu wrote: > Allahbaksh, > > If you ONLY want to find all document with a particular field that is not > null, you can loop through the TermEnum and TermDocs to find all th

Re: Optimum way to find all document without particular field

2009-03-04 Thread Erick Erickson
Well, you could construct a Filter as you were looping and use the Filter with your queries Erick On Wed, Mar 4, 2009 at 1:26 PM, Chris Lu wrote: > Allahbaksh, > > If you ONLY want to find all document with a particular field that is not > null, you can loop through the TermEnum and TermD

Re: Optimum way to find all document without particular field

2009-03-04 Thread Chris Lu
Allahbaksh, If you ONLY want to find all document with a particular field that is not null, you can loop through the TermEnum and TermDocs to find all the document ids. But this can not easily be combined with other queries. -- Chris Lu - Instant Scalable Full-Text

Re: Optimum way to find all document without particular field

2009-03-04 Thread Ganesh
- Original Message - From: "Ganesh" To: Sent: Wednesday, March 04, 2009 12:05 PM Subject: Re: Optimum way to find all document without particular field Allahbaksh, I don't think, Lucene could filter out Null and Not null values. In case if the field value is

Re: Optimum way to find all document without particular field

2009-03-03 Thread Ganesh
h - Original Message - From: "Allahbaksh Mohammedali Asadullah" To: Sent: Wednesday, March 04, 2009 11:12 AM Subject: Optimum way to find all document without particular field Hi, What is the optimum way in which I can find all the document which has particular field in it. Exa

Re: Optimum way to find all document without particular field

2009-03-03 Thread zhaoxueqing
. - Original Message - From: "Allahbaksh Mohammedali Asadullah" To: Sent: Wednesday, March 04, 2009 1:42 PM Subject: Optimum way to find all document without particular field Hi, What is the optimum way in which I can find all the document which has particular field in it. Example I wa

Optimum way to find all document without particular field

2009-03-03 Thread Allahbaksh Mohammedali Asadullah
Hi, What is the optimum way in which I can find all the document which has particular field in it. Example I want to find all the document in which the field text is not null. Regards, Allahbaksh Allahbaksh Mohammedali Asadullah, Software Engineering & Technology Labs, Infosys Technolgies Limit