lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Reg filter criteria on multivalued attribute
Date Thu, 03 Feb 2011 13:35:43 GMT
Hmmm, why doesn't +relationship:DEF_BY -relationship:BEL_TO

Then I don't think the second part matters...


On Wed, Feb 2, 2011 at 12:09 PM, bbarani <> wrote:

> Hi,
> I have a question on filters on multivalued atrribute. Is there a way to
> filter a multivalue attribute based on a particular value inside that
> attribute?
> Consider the below example.
> <arr name="relationship">
> <str>DEF_BY</str>
> <str>BEL_TO</str>
> </arr>
> I want to do a search which returns the result which just has only the
> relationship DEF_BY and not BEL_TO. Currently if I do a normal search for
> DEF_BY, the documens which contains DEF_BY along with other relationship is
> being returned rather I want the documents that contain only DEF_BY under
> relationship shoudl be returned. Also is there a way to make SOLR return
> the
> documents based on the number of elements in multivalue attribute? If thats
> possible I can first make SOLR return those documents and then do a filter
> against that for my search on top of the results returned.
> Is there a way to write a query to do this? Any pointers or help in this
> regard would be appreciated..
> Thanks,
> Barani
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message