Should work once you set up both fields as multiValued (
http://wiki.apache.org/solr/SchemaXml#Common_field_options).


On Thu, Aug 15, 2013 at 12:07 AM, Utkarsh Sengar <utkarsh2...@gmail.com>wrote:

> Hello,
>
> Is it possible to load a list in a solr filed and query for items in that
> list?
>
> example_core1:
>
> document1:
> FieldName=user_ids
> Value=8,6,1,9,3,5,7
> FieldName=allText
> Value=text to be searched over with title and description
>
> document2:
> FieldName=user_ids
> Value=8738,624623,7272.82272,733
> FieldName=allText
> Value=more text for document2
>
> Query: allText:hello
> fq:user_ids:8,8738
>
> Result: All documents who have the text "hello" in allText and userId=8
>
> If this is not possible, what is a better way to solve this problem?
>
> --
> Thanks,
> -Utkarsh
>

Reply via email to