lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Toke Eskildsen ...@statsbiblioteket.dk>
Subject RE: Sub field indexing
Date Mon, 08 Apr 2013 18:02:32 GMT
It-forum [it-forum@meseo.fr]:
> In exemple I have a product A this product is compatible with a Product
> B version 1, 5, 6.

> How can I index values like :

> compatible_engine : [productB,ProductZ]
>    version_compatible : [1,5,6],[45,85,96]

Index them as

compatible_engine: productB/1
compatible_engine: productB/5
compatible_engine: productB/6
compatible_engine: productZ/45
compatible_engine: productZ/85
compatible_engine: productZ/96

in a StrField (so that it is not tokenized).

> After indexing how to search into ?

compatible_engine:productZ/85 to get all products compatible with productZ, version 85
compatible_engine:productZ* to get all products compatible with any version of productZ.

- Toke Eskildsen
Mime
View raw message