Giter Site home page Giter Site logo

Comments (11)

manishobhatia avatar manishobhatia commented on August 16, 2024

Hi Christian,
I created a branch with your test in it

Can you check if this is accurate ? I am unable to see the result you showed.

If you can modify that test with a small set of data you have , I can debug and see where the issue is

from fuzzy-matcher.

 avatar commented on August 16, 2024

from fuzzy-matcher.

 avatar commented on August 16, 2024

from fuzzy-matcher.

 avatar commented on August 16, 2024

Just to add for completion:

I tested the following three scenarios:

  • Hard-coded string values in the code: works as expected

  • Reading data from a file: works as expected

  • Reading data from a database: unexpected results

I suspect Spring Data has something to do with this. If I find any more details, I'll drop them here.

Thanks!

from fuzzy-matcher.

 avatar commented on August 16, 2024

One more update: I have a file with data that, when reading straight from the file, still returns the unexpected results. Is there a way I can share this file with you for testing? This is not information I can share publicly on this thread.

Thanks!

from fuzzy-matcher.

manishobhatia avatar manishobhatia commented on August 16, 2024

if its not too big, can you mail it to [email protected] ?

from fuzzy-matcher.

 avatar commented on August 16, 2024

from fuzzy-matcher.

manishobhatia avatar manishobhatia commented on August 16, 2024

Hi Christian,

The code you shared is fine. I think the issue is with visualization of the result in print statement.

If you can replace the last println with this, you should see correct results

System.out.println("Matching " + doc.getMatchedWith().toString() + " Score : " + doc.getScore().getResult());

We were printing the "Match" object instead of the Document it matched with. Hope this helps

from fuzzy-matcher.

 avatar commented on August 16, 2024

from fuzzy-matcher.

 avatar commented on August 16, 2024

from fuzzy-matcher.

 avatar commented on August 16, 2024

Great support from this team. Many thanks!

from fuzzy-matcher.

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.