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" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]