Hi Everyone,

Assume we have the following documents stored, where animals is a
multivalued fields..
<doc>
        <str name="id">someGuid1</str>
        <arr name="animals">
                <str>cats</str>
                <str>dogs</str>
                <str>wolf</str>
        </arr>
</doc>

<doc>
        <str name="id">someGuid2</str>
        <arr name="animals">
                <str>cats</str>
                <str>cats</str>
                <str>wolf</str>
        </arr>
</doc>

<doc>
        <str name="id">someGuid3</str>
        <arr name="animals">
                <str>cats</str>
                <str>kangaroo</str>
                <str>wolf</str>
        </arr>
</doc>

How do i query a document where the field "animals" contains "cats" with
occurences > 1?
So this query should return doc with "id":someGuid2

Is this possible?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Multivalued-Fields-queries-for-Occurences-tp4315482.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to