solr - How to down boost a term in dismax -


all:

what want highly score documents have "season" in content field , heavily punish documents "season" in title field , boost newly created documents.

i wonder how in dismax(or edismax)? thanks

boosting on qf parameter boost field regardless of value in field. in order boost documents contains keyword "season" in content field use "bq" parameter instead. ex.

select?q=*&bq=content:season^50&bq=title:season^0.001

to boost newly created documents use boost function

recip(ms(now,mydatefield),3.16e-11,1,1)

where mydatefield field containing timestamp of when document created or updated.

more details on usage of boost functions can found here


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -