lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Omar Didi" <>
Subject RE: error when query contains numbers
Date Thu, 31 Mar 2005 02:58:02 GMT
Thanks Eric, I have looked at the way the documents were indexed and they are using 90% of
the code using in chapter 2 and 4 of your book LIA. except for the stop words. 
I will try to use Luke to see if there are any numbers indexed first.


From: Erik Hatcher []
Sent: Wed 3/30/2005 8:58 PM
Subject: Re: error when query contains numbers

On Mar 30, 2005, at 8:05 PM, Omar Didi wrote:
> the .toString() looks excactly like the query I enter: if I search for
> "yahoo AND 200" it returns 0 hits. I am sure there are documents that
> have 200 hundreds in them. The analyzer I am using is a custom
> analyzer that has a list of stop words. I don t know much about the
> way data was indexed, I am just developing an aplication to search
> using the analyzer that was used while indexing.

Try the tips here: - you need to
analyze your analyzer and ensure what you think was indexed actually
was.  Also, look into using Luke - - to see
what makes your index tick.

> my concern now is if there is an error with the way the indexing was
> do I have to reindex the documents?

Yes.  That's just the nature of how it works.  Getting the analysis
right is important stuff, and if you didn't index it, you can't search
for it!

Feel free to share more details of your analyzer, and we'd be happy to
"analyze" it.


> thanks
> On Mar 30, 2005, at 4:41 PM, Omar Didi wrote:
>> I am using a QueryParser to search the index. when the query has
>> numbers, i don t get any results??
>> any suggestions??
> What is the .toString of the Query object instance returned from
> QueryParser?  What Analyzer are you using?  How did you index the
> field(s) being queried?
>       Erik
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message