have you tried multi:1 and multi:2 and multi:3 ?

2011/7/29 rajini maski <rajinima...@gmail.com>

> Hi All,
>
>       I have a specific requirement in the multi-valued field type.The
> requirement is as follows
>
> There is a multivalued field in each document which can have mutliple
> elements or single element.
>
> For Eg: Consider that following are the documents matched for say q= *:*
>
> *DOC1*
>
>  <doc>
> <arr name="multi">
> <str>1</str>
> </arr>
> </doc>
> *
> *
> *DOC2*
> <doc>
> <arr name="multi">
> <str>1</str>
> <str>3</str>
> <str>4</str>
> </arr>
> </doc>
>
> *DOC3*
> <doc>
> <arr name="multi">
> <str>1</str>
> <str>2</str>
> </arr>
> </doc>
>
>    The query is get only those documents which have multiple elements for
> that multivalued field.
>
> I.e, doc 2 and 3  should be returned from the above set..
>
> Is there anyway to achieve this?
>
>
> Awaiting reply,
>
> Thanks & Regards,
> Rajani
>



-- 

*Alexei Martchenko* | *CEO* | Superdownloads
ale...@superdownloads.com.br | ale...@martchenko.com.br | (11)
5083.1018/5080.3535/5080.3533

Reply via email to