0

I want to search data in solr. I have a field which contains comma separated ids. How can I search for comma separated ids in solr? I have ids in an array for which I need the search like:

ids to search : [1,5]

ids in solr field: "1,2,3,4,5,6"

Sebastian
  • 5,721
  • 3
  • 43
  • 69

2 Answers2

0

To make the field in solr to be multi-valued and try like this :

q=field:*7*
helpdoc
  • 1,910
  • 14
  • 36
0

I get the correct result by using the or operator as mentioned by the @MathsLindh in comment. Thanks for responding. :)