Re: Indexing lists of IDs

2010-04-14 Thread Kristjan Siimson
Thanks, the problem was with tokenizer, which didn't index any numbers, so I tried writing my own, and it works perfectly! :) Sincerely, Kristjan Siimson On Wed, Apr 14, 2010 at 2:12 PM, Uwe Schindler wrote: > You can add the terms with Field.Index.NOT_ANALYZED multiple times to the > same fiel

RE: Indexing lists of IDs

2010-04-14 Thread Uwe Schindler
You can add the terms with Field.Index.NOT_ANALYZED multiple times to the same field. If you use an analyzer like WhitespaceAnalyzer and you analyze your tersm, you must also pass the analyzed term through analyzer when building a TermQuery. This may explain, why you don’t get those IDs. But fo

Re: Indexing lists of IDs

2010-04-14 Thread Rene Hackl-Sommer
Hi Kristjan, which Tokenizer and Filters are you using for the ID field? Rene Am 14.04.2010 21:15, schrieb Kristjan Siimson: Hello, I have document for which I'd like to index an array of indexes. For example, there is a product that belongs to categories with IDs 12, 15, 16, 145, 148. I'd li