lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Modify solr score
Date Sat, 22 Apr 2017 16:04:41 GMT
This may be suggesting a solution that is too experimental or using the wrong hammer for the
job, but to me it sounds like you could use “payloads” for this type of ranking of terms
relationship to a document.   

See SOLR-1485 for the recent work I’ve been doing (and aim to get committed soon).   You
could index documents in this way:

   id, weighted_terms_dpf
   1, A|5.0 B|95.0
    2,A|88.7 B|0.1

And then search for “A” and use the 88.7 value to factor into the score or sorting.  


> On Apr 21, 2017, at 12:35 PM, tstusr <> wrote:
> Since we report the score, we think there will be some relation between them.
> As far as we know scoring (and then ranking) are calculated based on tf-idf.
> What we want to do is to make a qualitative ranking, it means, according to
> one topic we will tag documents as "very related", "fairly related" or "poor
> related". So, we select some documents completely unrelated to a topic.
> On a very related document we found a ratio of ~2% of words that reports
> ~0.85 of score (what we think is related to ranking). On a test document we
> found a ratio of less than 0.01% and the score is heigher than the first
> one. What we expect is that documents not related (those ones with less
> ratio) report lower scores so we can then use them as minimum and create the
> scale.
> We came with multiply (of affect in some way) the default rank solr provide
> us with the ratio of documents so unrelated documents will be penalized
> while those with higher ratio values will be overrated.
> Greetings, and thanks for your help.
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

View raw message