Re: Fwd: Lucene search problem

2008-12-24 Thread amar . sannaik
>Chain lChain = (Chain)pValue; >>lField = new Field(pName,lChain.getName(),pStore, pIndex); >>pDocument.add(lField); >>} >>} >> >> so here, where chain object is null I am saving the value to be >> "

Re: Fwd: Lucene search problem

2008-12-24 Thread Aleksander M. Stensby
"nullnull". The query I would use to retrieve what is null looks like "chainName:nulllnull". This solve everything I was looking for. Thanks, -Amar -- Forwarded message -- From: Date: Wed, Dec 24, 2008 at 11:33 AM Subject: Re: Lucene search problem To: java-use

Fwd: Lucene search problem

2008-12-24 Thread amar . sannaik
> > Thanks in advance. > > -Amar > > > > On Tue, Dec 23, 2008 at 12:04 AM, Aaron Schon > > wrote: > > > > > I would second Erick's recommendation - create an arbitrary > > representation > > > for NULL such as "NULL" (if you

Re: Re: Re: Lucene search problem

2008-12-23 Thread tom
AUTOMATIC REPLY LUX is closed until 5th January 2009 - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Re: Re: Lucene search problem

2008-12-23 Thread tom
AUTOMATIC REPLY LUX is closed until 5th January 2009 - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

Re: Lucene search problem

2008-12-23 Thread amar . sannaik
Dec 23, 2008 at 12:04 AM, Aaron Schon > > wrote: > > > > > I would second Erick's recommendation - create an arbitrary > > representation > > > for NULL such as "NULL" (if you are certain the term "NULL" does not > > occur > > > in actual

Re: Lucene search problem

2008-12-23 Thread Erick Erickson
ur > > in actual docs. Alternatively, use "NULLNULNULLNULL" or something to that > > effect. > > > > > > > > - Original Message > > From: Erick Erickson > > To: java-user@lucene.apache.org > > Sent: Monday, December 22, 2008 8:58:21

Re: Lucene search problem

2008-12-23 Thread amar . sannaik
e > From: Erick Erickson > To: java-user@lucene.apache.org > Sent: Monday, December 22, 2008 8:58:21 AM > Subject: Re: Lucene search problem > > Try searching the mailing list archives for a fuller discussion, but > the short answer is usually to index an unique value for you

Re: Lucene search problem

2008-12-22 Thread Aaron Schon
From: Erick Erickson To: java-user@lucene.apache.org Sent: Monday, December 22, 2008 8:58:21 AM Subject: Re: Lucene search problem Try searching the mailing list archives for a fuller discussion, but the short answer is usually to index an unique value for your "null" entries, then

Re: Lucene search problem

2008-12-22 Thread Erick Erickson
Try searching the mailing list archives for a fuller discussion, but the short answer is usually to index an unique value for your "null" entries, then search on that, something totally outrageous like, say AAABBBCCCDDDEEEFFF. Alternatively, you could create, at startup time, a Filter of all the d

Lucene search problem

2008-12-22 Thread amar . sannaik
Hi, I have problem with lucene search, I am quite new to this. Can some body help or just push me to who can please. Problem what I am facing we need search for object whose attribute "chain" contaning null, but lucene does not help indexing the null values.. how can I achieve this, or please gu