Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User
Modifying score based on tf and slop
 

Index | Next | Previous | View Flat


radha84 at gmail

May 6, 2009, 10:44 AM


Views: 1008
Permalink
Modifying score based on tf and slop

Hi all,

All I have is a query running on a document with a single field which
has some search value. This is all which will be present.
No more documents / fields.

I have the following specific requirements

1) Length of document should not affect score - Implemented as per
lucene documentation using concept of Fair Similairty by making
lengthnorm as 1

2) The no of times a term in the query occurs in the search field
should not affect the score

3) I am using the spannearquery. Hence the slop should affect the score.


I implemented 2) by changing the tf to return 1 if freq >0 .

But this adversely affects 3) as the slop value is factored into the
tf ( as per what I can see in the span scorer)


How can I ensure the frequency of a certain term does not affect the
score while at the same ensuring that the slop does affect it ?


Thanks,
Radha

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
For additional commands, e-mail: java-user-help[at]lucene.apache.org

Subject User Time
Modifying score based on tf and slop radha84 at gmail May 6, 2009, 10:44 AM
    Re: Modifying score based on tf and slop simon.willnauer at googlemail May 6, 2009, 12:13 PM
    Re: Modifying score based on tf and slop radha84 at gmail May 6, 2009, 6:51 PM
    Re: Modifying score based on tf and slop simon.willnauer at googlemail May 6, 2009, 8:32 PM
    Re: Modifying score based on tf and slop radha84 at gmail Jun 30, 2009, 3:52 AM
        Re: Modifying score based on tf and slop radha84 at gmail Jul 5, 2009, 10:02 AM
    Re: Modifying score based on tf and slop hossman_lucene at fucit Jul 5, 2009, 4:07 PM
    Re: Modifying score based on tf and slop radha84 at gmail Jul 6, 2009, 6:10 AM
        Re: Modifying score based on tf and slop markrmiller at gmail Jul 6, 2009, 6:19 AM
            Re: Modifying score based on tf and slop radha84 at gmail Jul 6, 2009, 10:21 AM
    Re: Modifying score based on tf and slop radha84 at gmail Jul 13, 2009, 5:12 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.