Giter VIP home page Giter VIP logo

Comments (6)

mikemccand avatar mikemccand commented on June 12, 2024

I noticed this when trying to debug AfterEffectB in LUCENE-8015.

The formula should be: (F + 1) / (n * (tfn + 1)) but we currently use (F + 1 + 1) / ((n + 1) * (tfn + 1)) and I couldn't remember why we had this mess everywhere.

[Legacy Jira: Robert Muir (@rmuir) on Oct 28 2017]

from stargazers-migration-test.

mikemccand avatar mikemccand commented on June 12, 2024

Here is a patch. core tests pass. I didn't yet revert all the similarity formula hacks as that will take more time.

[Legacy Jira: Robert Muir (@rmuir) on Oct 28 2017]

from stargazers-migration-test.

mikemccand avatar mikemccand commented on June 12, 2024

Updated patch with javadocs improvements for Term/CollectionStatistics. solr distributed idf code needed small tweaks but they were easy because it already assumed this method might return null.

[Legacy Jira: Robert Muir (@rmuir) on Oct 28 2017]

from stargazers-migration-test.

mikemccand avatar mikemccand commented on June 12, 2024

I reviewed callers of termStatistics and found also TermAutomatonQuery in sandbox (scores like phrase query but has the same current issue as SpanOrQuery if some don't exist), fixed it the same way, and added unit tests. I think its ready.

[Legacy Jira: Robert Muir (@rmuir) on Oct 28 2017]

from stargazers-migration-test.

mikemccand avatar mikemccand commented on June 12, 2024

Commit e0bde579815ae5ce2525bb659d04e908812f1605 in lucene-solr's branch refs/heads/master from @rmuir
https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e0bde57

LUCENE-8020: don't force sim to score bogus terms (e.g. docfreq=0)

[Legacy Jira: ASF subversion and git services on Oct 31 2017]

from stargazers-migration-test.

mikemccand avatar mikemccand commented on June 12, 2024

I spun off LUCENE-8023 and LUCENE-8024 to simplify sim impls.

[Legacy Jira: Robert Muir (@rmuir) on Oct 31 2017]

from stargazers-migration-test.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.