I have a Solr index with a year field, I can query all results within a range of years using the following query which works fine
*:* AND year:[1934 TO 1950]
How would I incorporate the AND operator so I can search for results in a number of selected years, eg. results for year 1930 AND year 1950 only. I tried something like:
*:* AND year:1934 AND year:1950
the above query displays no results.
Your’s does not display a result because there can be no match in both years (but that’s what what the expression says).