Using boost functions

  • vishnusv
    Participant
    6 years, 4 months ago #19957

    We have a date field created using advanced custom fields plugin. We need the most recent records based on this field to show up on top when sorted by score descending. Is there a way I can add a boost function similar to the example given in https://lucene.apache.org/solr/guide/6_6/the-dismax-query-parser.html#TheDisMaxQueryParser-Thebf_BoostFunctions_Parameter.

    wpsolr
    Keymaster
    6 years, 4 months ago #19958

    If sorted by score, the second sort by date will not help.

    wpsolr
    Keymaster
    6 years, 4 months ago #19959

    You can try our extension /guide/video-tutorials-wpsolr-pro-extensions/video-wpsolr-pro-advanced-scoring-elasticsearch/

    vishnusv
    Participant
    6 years, 4 months ago #20012

    I am trying to assign the score so that most recent records based on our date field get a higher score and will appear on top when sorted by score. we don’t need a second sort.

    We are on self hosted Solr. Looks like the extension is for Elasticsearch only.

    wpsolr
    Keymaster
    6 years, 4 months ago #20019

    Exact. The decay scoring is only available for Elasticsearch.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.