In SOLR, how to fq(filter query) for two different fields? -
i need filter query satisfy 2 different conditions on separate field.
i tried next , none worked
fq="color:red , type:book"
fq="+color:red +type:book"
i cannot utilize 2 different fq thats limitation set solrphp lib using requests $param["fq"] single argument. hence need pass 1 query function.
i new solr please dont mind if missing obvious.
try fq:(color:red , type:book)
or fq:(+color:red +type:book)
. using quotes around criteria, telling solr execute phrase query, not recognizing field names within phrase.
solr
No comments:
Post a Comment