问题
Just wondering what the correct syntax for an fq query would be...
Is it, example #1:
fq=(attr__sku__suitability__s:1-3yrs) OR
(attr__sku__suitability__s:3-6yrs) OR
(attr__sku__suitability__s:6-12yrs) OR
(attr__sku__suitability__s:0-3mths) OR
(attr__sku__suitability__s:3-12mths)
Or, example #2 :
fq=attr__sku__suitability__s:(1-3yrs OR 3-6yrs OR 6-12yrs OR 0-3mths OR 3-12mths)
Or something else I've completely overlooked
(url encoding has been left out to make it easier to read)
回答1:
Both examples are OK and have the same behaviour, you could even remove parentheses from the first example.
来源:https://stackoverflow.com/questions/7260742/solr-fq-syntax-for-an-or-query