lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject RE: How to return exact set of multivalue field
Date Sun, 30 Oct 2011 20:21:37 GMT

: Follow up question: what if it is a string instead of number?  While you can
: use [387 TO *] to find out all number that is bigger than 387, how do you
: find specific set of "string"?

range queries should also work on strings, but i think the more general 
solution to your problem is that you should index an additional field that 
contains the total number of values in your multivalued field, and then 
use the count as a constraint as well...

+field_name:(385 386) +field_name_count:2



-Hoss

Mime
View raw message