solr Range search


Example

age:[50 TO 60]

Matches documents where age is between 50 and 60 including 50 and 60

age:{50 TO 60}

Matches documents where age is between 50 and 60 excluding 50 and 60

age:[* TO 60]

Matches documents where age is less than or equal to 60

age:[50 TO *]

Matches documents where age is greater than or equal to 50

age:{50 to 60]

You can mix curly and square brackets. Matches documents where age is greather than 50 but less than or equal to 60