Solr search with an array of values ​​in a field

I am new to Solr. Can someone help me in solving my problem. I have an array of values ​​and I want to add this to the solr request, for example

$query->setQuery('field:[1,2,5]'); 

When I do this, I get this error message

 org.apache.solr.search.SyntaxError: Cannot parse 'tag_id:[1,2,5]': Encountered \" \"]\" \"] \"\" at line 1, column 13.\r\nWas expecting one of:\r\n \"TO\" ...\r\n <RANGE_QUOTED> ...\r\n <RANGE_GOOP> ...\r\n 

I am stuck on this. Please help me.

+5
source share

All Articles