Solr supports multivalued fields, but really only for scalar, not structured
values. And trying to manage two or more multivalued fields in parallel is
also problematic. Better to simply use dynamic fields, such as name the
field "xyz_skill" and the value is the number of years. Then you can simply
query:
php_skill:[5 TO *] AND ruby_skill:[2 TO *]
-- Jack Krupansky
-----Original Message-----
From: amid
Sent: Monday, September 1, 2014 12:24 PM
To: solr-user@lucene.apache.org
Subject: Indexing & search list of Key/Value pairs
Hi,
I'm using solr and trying to index a list of key/value pairs, the key
contains a string with a skill and the value is the years of experience
(i.e. someone with 5 years of php and 2 years of ruby).
I want to be able to create a query which return all document with a
specific skill and range of years,
i.e. php with 2-4 years
Is there a good way to index the list of skills pair so we can query it
easily?
Thanks,
Ami
--
View this message in context:
http://lucene.472066.n3.nabble.com/Indexing-search-list-of-Key-Value-pairs-tp4156206.html
Sent from the Solr - User mailing list archive at Nabble.com.