I want to search in a text box in Solr. I want to return all matches in a range or where there is no value. Two search words independently:
myfield:[start TO finish] -myfield:[* TO *]
The first returns all matches in the range. The second returns all matches that do not matter for the "myfield" field. The problem is combining the two.
This does not return matches:
myfield:[start TO finish] OR -myfield:[* TO *]
This returns matches between the start and end, but not empty entries:
myfield:[start TO finish] OR (-myfield:[* TO *])
solr
Alistair Doulin Aug 27 '09 at 21:20 2009-08-27 21:20
source share