You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Eric Fixler <fi...@smete.org> on 2002/11/21 05:49:44 UTC

Searching for keyword 0 [zero] using TermQuery

Hello.  I have a field in an index that stores item id's which can be 
zero.  I use a TermQuery to search for these, and everything works fine 
except when I'm searching for things with id 0; these entries return no 
results.

The index appears to have the correct data and the query looks proper 
as far as I can tell.

Is this a known issue?  Can anyone suggest a possible workaround?

thanks
eric


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Searching for keyword 0 [zero] using TermQuery

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Is 0 in the list of your stop words?

Otis

--- Eric Fixler <fi...@smete.org> wrote:
> Hello.  I have a field in an index that stores item id's which can be
> 
> zero.  I use a TermQuery to search for these, and everything works
> fine 
> except when I'm searching for things with id 0; these entries return
> no 
> results.
> 
> The index appears to have the correct data and the query looks proper
> 
> as far as I can tell.
> 
> Is this a known issue?  Can anyone suggest a possible workaround?
> 
> thanks
> eric
> 
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus � Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>