简体   繁体   中英

Boosting Solr Range Query

Is there a way to boost based on a range query in solr.

I've tried adding the boost to the end of the range, but it doesn't seem to apply the boost to the score. I've run the query without the "( : ||" to ensure that I'm getting results that are both inside and outside the range. The score reflects that boosting is taking place, but the items that match the boosted portion of the query do not recieve extra points.

Smaple Query:

q=lastName:(Smith) (*:* || dob:[1980-09-30T12:09:42.3804564-07:00Z TO 1983-09-30T12:09:42.3844564-07:00Z]^100)

Does anyone know how I can get solr to incorporate the boosted field into the result scores?

我对此并不陌生,但我认为您可以使用boost查询来提升这些结果:

&bq=dob:[1980-09-30T12:09:42.3804564-07:00Z TO 1983-09-30T12:09:42.3844564-07:00Z]^100

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM