lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rene Hackl-Sommer <rene.a.ha...@gmx.de>
Subject Re: Indexing lists of IDs
Date Wed, 14 Apr 2010 19:20:56 GMT
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 like to index these categories, and then be able to use them
> in queries, so that I can search for product which's name is "Bottle" and
> which belongs to category 12.
>
> I came up with creating a field in which I store the ID numbers and separate
> them with spaces. However, when I tried to create a term query, the query
> never gave any results. Can anybody help me with this?
>
> Sincerely,
> Kristjan Siimson
>
>    


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


Mime
View raw message