solr - Boosting documents when the numeric search value lands between two fields of the document -
is there way boost documents search query a, lands beween field x , field y? boost them , don't want filter non-matches
i know if filter go route:
fieldx:[* a] , fieldy:[a *] but don't want filter, want boost these documents, documents not between x , y should still considered rank lower.
its custom function way go?
if using version of solr 4.9, can use reranking doing query :
q=yourrequest&rq={!rerank rerankquery=$rqq rerankdocs=1000 rerankweight=3}&rqq=(fieldx:[* a] , fieldy:[a *]) this rerank first 1000 documents using subquery.
Comments
Post a Comment