[
https://issues.apache.org/jira/browse/SOLR-6601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165226#comment-14165226
]
alexey commented on SOLR-6601:
------------------------------
Yes, we want to control relevancy by boost functions and field weights. In some
scenarios tf and idf do not have meaningful value.
> Ignore TF IDF on query side
> ---------------------------
>
> Key: SOLR-6601
> URL: https://issues.apache.org/jira/browse/SOLR-6601
> Project: Solr
> Issue Type: Improvement
> Reporter: alexey
> Priority: Trivial
>
> It's a typical request in user mail lists and from customers - "how to
> ignore tf idf on query time".
> Let's put these naive code snippet to contrib jar in order to avoid writing
> it multiple times.
> class IgnoreTfIdfSimilarity extends DefaultSimilarity {
> @Override
> public float tf(float freq) {
> return 1.0;
> }
> @Override
> public float tf(int freq) {
> return 1.0;
> }
> @Override
> // Note the signature of this method may now take longs:
> // public float idf(long docFreq, long numDocs)
> public float idf(int docFreq, int numDocs) {
> return 1.0;
> }
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]