Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9223883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:10:51+00:00 2026-06-18T04:10:51+00:00

i want to compute a final score for each document by summing the weighted

  • 0

i want to compute a final score for each document by summing the weighted scores of multiple fields scores,instead of getting the MAX as the edisMAx query parser does.

So if i got three fields;title and description, i want my final score to be like this:

FINAL SCORE = w1 * title_field_score + (1-w1) * description_field_score + (1-w1 -w2) * description_field_score

Where w1,w2 can be values between 0 to 1.

The default similarity with no any simialrity gives this ranking. This uses the following search handler:

  <requestHandler name="/select" class="solr.SearchHandler">
 <lst name="defaults">
   <str name="echoParams">explicit</str>
   <int name="rows">10</int>
   <str name="df">detail_page_text</str>

   <!-- Query settings -->
   <str name="defType">edismax</str>
   <str name="qf">
      job_title description detail_page_text
   </str>

now by using the tie as below, seems that we getting a ideal ranking.

<str name="tie">1.0</str>

So my question is if the use of the tie parameter is the right way to achieve a weigthed ranking score based on all fields equaly(or with additional weights).

Any tip would be much appreciated!
Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:10:53+00:00Added an answer on June 18, 2026 at 4:10 am

    Dismax tie is the parameter you should use for weighted scoring.

    tie = 1.0 -> Sum of All the Individual Scores.

    19.07% 0.69268036 (MATCH) **max plus 1.0 times** others of:
        1.96% 0.07105611 detail_page_text:senior
        4.16% 0.15101658 description:senior
        12.96% 0.4706077 job_title:senior
    

    tie = 0.0 -> Max of the Individual Scores.

    17.83% 0.7043001 (MATCH) **max** of:  
        - 0.028197879 detail_page_text:senior  
        - 0.04566047 description:senior  
        - 17.83% 0.7043001 job_title:senior
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to compute the time 4 hours later during the DST transition, either
For use in a rigid body simulation, I want to compute the mass and
I want to ask how to add a computed column in BIRT that compute
I have the following HTML. I want to add class=last attributes to the final
I want to have one object of some .NET class used by multiple processes
I want to compute (for a project) self-avoiding random walks by using a recursive
i want to compute all *bin files inside a given directory. Initially I was
I want to compute functions on my server, such as median() or average() .
When lucene want to compute weight of query it first call searcher.rewrite(Query) ,what does
I need help with a piece of code I'm writing. I want to compute

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.