Indexing and searching Numbers with Lucene...
1 posts in topic
Flat View  Flat View

Posted By:   Gandulf_Kohlweiss
Posted On:   Tuesday, December 10, 2002 04:57 AM

How can I index/search Numbers in Lucene?

Made up an Lucene Index, added the needed fields to it, and tried to search for the entries. Everthing works fine as long as i don't search for numbers (etc.: "1234")(which i need to do)

I added the fields with numbers in it as keywords, so that no tokenizing happens, but still i get no results. (I use a Simpleanalyzer for the normal text fields)

Is there something special to consider when working with numbers, or could it be that i'm simple doing something wrong? But since it works fine with normal text i think numbers need a special treatment ...

thx Gandulf

Re: Indexing and searching Numbers with Lucene...

Posted By:   Otis_Gospodnetic  
Posted On:   Wednesday, December 11, 2002 11:07 AM

Must be one of the Filters in your Analyzer that are throwin the nunbers out. Add some debugging statements to your Analyzer and/or Filter and you'll see.
About | Sitemap | Contact