lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Search Question - not returning desired results
Date Tue, 25 Nov 2003 17:37:18 GMT
You have to look at Analyzers.
Figure out which one you are using and why, and see if you should be
using a different one or even write your own.
Some of the Analyzers break input on certain tokens (e.g. . or _ or
...), which sounds like the problem is here.

I think Erik's java.net article about Lucene may explain some of these
things.
You could also look at Lucene's unit tests to understand Analyzers
better.

Otis


--- "Pleasant, Tracy" <tracy.pleasant@lmco.com> wrote:
> 
> The documents I have index contain information regarding file names
> also.
> 
> For instance 'return_results.pl' or something like that may be in the
> document fields.
> 
> I am not understanding Lucene's way of searching:
> 
> 1. If I search for 'return_results', the search does not return
> anything
> 2. If I search for 'results' or 'return', the search does not return
> anything
> 3. If I search for 'results.pl', the search does return the document
> containg 'return_results.pl' 
> 4. If I search for 'results~', the search does return the document
> containg 'return_results.pl' 
> 5. If I search for 'return_results~', the search does not return
> anything
> 
> What is going on? 
> 
> I want it to return the document in all of the situations.
> 
> I also don't want to have to use '~' all the time.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message