You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Dumitru Daniliuc (Jira)" <ji...@apache.org> on 2020/05/21 21:32:00 UTC

[jira] [Comment Edited] (LUCENE-7368) Remove queryNorm

    [ https://issues.apache.org/jira/browse/LUCENE-7368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17113558#comment-17113558 ] 

Dumitru Daniliuc edited comment on LUCENE-7368 at 5/21/20, 9:31 PM:
--------------------------------------------------------------------

[~jpountz], thanks for looking into this! Here's the old explain message:
{noformat}
    202743.53 = <query>, product of:
      587.6624 = sum of:
        587.6624 = sum of:
          587.6624 = sum of:
            587.6624 = weight(username:barackobama in 0) [UserSimilarityProvider], result of:
              587.6624 = score(doc=0,freq=1.0), product of:
                33.93845 = queryWeight, product of:
                  1.96 = boost
                  17.315535 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
                    1.0 = docFreq
                    2.4365572E7 = docCount
                  1.0 = queryNorm
                17.315535 = fieldWeight in 0, product of:
                  1.0 = tf(freq=1.0), with freq of:
                    1.0 = termFreq=1.0
                  17.315535 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
                    1.0 = docFreq
                    2.4365572E7 = docCount
                  1.0 = fieldNorm(doc=0)
      345.0 = <query>
{noformat}

And here's the new one:
{noformat}
    11708.552 = <query>, product of:
      33.93783 = sum of:
        33.93783 = sum of:
          33.93783 = sum of:
            33.93783 = weight(username:barackobama in 0) [UserSimilarityProvider], result of:
              33.93783 = score(doc=0,freq=1.0), product of:
                1.96 = boost
                17.31522 = fieldWeight in 0, product of:
                  1.0 = tf(freq=1.0), with freq of:
                    1.0 = termFreq=1.0
                  17.31522 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
                    1.0 = docFreq
                    2.4357912E7 = docCount
                  1.0 = fieldNorm(doc=0)
      345.0 = <query>
{noformat}

I'll take a look at the methods you mentioned.


was (Author: ddaniliuc):
[~jpountz], thanks for looking into this! Here's the old explain message:
{noformat}
    202743.53 = <query>, product of:
      587.6624 = sum of:
        587.6624 = sum of:
          587.6624 = sum of:
            587.6624 = weight(username:barackobama in 0) [UserSimilarityProvider], result of:
              587.6624 = score(doc=0,freq=1.0), product of:
                33.93845 = queryWeight, product of:
                  1.96 = boost
                  17.315535 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
                    1.0 = docFreq
                    2.4365572E7 = docCount
                  1.0 = queryNorm
                17.315535 = fieldWeight in 0, product of:
                  1.0 = tf(freq=1.0), with freq of:
                    1.0 = termFreq=1.0
                  17.315535 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
                    1.0 = docFreq
                    2.4365572E7 = docCount
                  1.0 = fieldNorm(doc=0)
      345.0 = <query>
{noformat}

And here's the new one:
{noformat}
    11708.552 = <query>, product of:
      33.93783 = sum of:
        33.93783 = sum of:
          33.93783 = sum of:
            33.93783 = weight(username:barackobama in 0) [UserSimilarityProvider], result of:
              33.93783 = score(doc=0,freq=1.0), product of:
                1.96 = boost
                17.31522 = fieldWeight in 0, product of:
                  1.0 = tf(freq=1.0), with freq of:
                    1.0 = termFreq=1.0
                  17.31522 = idf, computed as log((docCount+1)/(docFreq+1)) + 1 from:
                    1.0 = docFreq
                    2.4357912E7 = docCount
                  1.0 = fieldNorm(doc=0)
      345.0 = <query>
{noformat}

I'll take a look at the IndexSearcher methods you mentioned and see if we missed anything in our code (it's possible we override some of this behavior, and did not make the appropriate changes).

> Remove queryNorm
> ----------------
>
>                 Key: LUCENE-7368
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7368
>             Project: Lucene - Core
>          Issue Type: Sub-task
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Major
>             Fix For: 7.0
>
>         Attachments: LUCENE-7368.patch
>
>
> Splitting LUCENE-7347 into smaller tasks.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org