You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Fabian Smagghe <f....@uliege.be> on 2022/01/12 11:35:10 UTC

boost last modified documents doesn't work

Dear  all,
In solr, I want to show the last modified documents first. I use 
exemples in Solr guide 
(https://solr.apache.org/guide/8_1/the-dismax-query-parser.html#bf-boost-functions-parameter) 
and in the result I don't have the last modified documents first...
what is the problem? can you help me?

Thanks!
Regards,
Fabian Smagghe, Université de Liège(BE)

*Query**:*

/select?q=*:*&rows=50&bf=recip(rord(lastModified),1,1000,1000)
.. or ...
/select?q=*:*&rows=50&bq={!func}recip(rord(lastModified),1,1000,1000)


*SOLR managed-schema:*

|<field name="lastModified" type="pdate" indexed="true" stored="true" 
default="NOW" multiValued="false"/> ||<fieldType name="pdate" class="solr.DatePointField" docValues="true"/>|
||


Re: boost last modified documents doesn't work

Posted by Susmit <sh...@gmail.com>.
you can look at the detailed score calculation to see the ranking of results using debug.explain.structured=true in query

Sent from my iPhone

> On Jan 14, 2022, at 7:20 AM, Fabian Smagghe <f....@uliege.be> wrote:
> 
> Dear  all,
> In solr, I want to show the last modified documents first. I use exemples in Solr guide (https://solr.apache.org/guide/8_1/the-dismax-query-parser.html#bf-boost-functions-parameter) and in the result I don't have the last modified documents first...
> what is the problem? can you help me?
> 
> Thanks!
> Regards,
> Fabian Smagghe, Université de Liège(BE)
> 
> *Query**:*
> 
> /select?q=*:*&rows=50&bf=recip(rord(lastModified),1,1000,1000)
> .. or ...
> /select?q=*:*&rows=50&bq={!func}recip(rord(lastModified),1,1000,1000)
> 
> 
> *SOLR managed-schema:*
> 
> |<field name="lastModified" type="pdate" indexed="true" stored="true" default="NOW" multiValued="false"/> ||<fieldType name="pdate" class="solr.DatePointField" docValues="true"/>|
> ||
>