lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <>
Subject Re: Query on multi valued field
Date Thu, 14 Nov 2013 16:38:08 GMT

"word delimiter filter"

-- Jack Krupansky

-----Original Message----- 
From: Jack Krupansky
Sent: Thursday, November 14, 2013 11:34 AM
Subject: Re: Query on multi valued field

I suppose you could define the field as tokenized text with the work
delimiter filter and with autogeneratePhraseQueries="false" and the default
query operator set to OR, and then queries might just work close enough to
what you want.


You could do a custom update processor that parsed the string and expands it
into separate integer values for a multivalued field, and then you would
need to do either a custom query parser or a query preprocessor that
exapanded that special syntax into normal  Solr query syntax using AND or OR
as desired.

You could implement the update processor as a JavaScript script. The
simplest approach to the query side would be to expand the special query
syntax in your application layer.

-- Jack Krupansky

-----Original Message----- 
From: giridhar
Sent: Thursday, November 14, 2013 10:45 AM
Subject: Re: Query on multi valued field


I want to search in a multivalued field.

For example, my field FormIds contains (1,2,3) as comma separated.

If i search for 1 or (1,2) or (1,3) or (2,3) or (1,2,3) any combination like
this should work.

How to define this multivalued integer field type.


View this message in context:
Sent from the Solr - User mailing list archive at 

View raw message