Tony
Tony

Reputation: 1155

SOLR query specifying several values

I am doing a solar query. With my filter I want to look for various values of x (1004, 1005, 1006). I tried using x:100[456] but it did not like that. I did a search in google and found some information but not how to do this. I remember seeing someone else do something similar a few weeks ago but I cannot remember what it was. What would be the correct syntax? I suppose I could figure out how to do an OR if the number of them was small enough.

Upvotes: 1

Views: 95

Answers (1)

MattMcKnight
MattMcKnight

Reputation: 8290

If you are looking for a range query, the solr syntax is:

x:[1004 TO 1006]

Upvotes: 1

Related Questions