GithubHelp home page GithubHelp logo

Comments (4)

mgautierfr avatar mgautierfr commented on August 24, 2024

It seems it is issue with the xapian indexation of the book (internal database in library).

We index the book with Xapian::TermGenerator::index_text(https://github.com/kiwix/libkiwix/blob/main/src/library.cpp#L439) which is made to index "classic" text, and so understand the . as a sentence separator. So we have 3 indexed name for the book : 3dprinting, stackexchange and com_en_all.

Changing to doc.add_term("XN"+normalizeText(book.getName())); properly index the name as only one name containing dot.

curl '<host>/catalog/v2/partial_entries?name=3dprinting.stackexchange.com_en_all' now return a result.
However curl '<host>/catalog/v2/partial_entries?name=3dprinting' does not as there is no book with the name "3dprinting".

from libkiwix.

rgaudin avatar rgaudin commented on August 24, 2024

OK thank you for the explanation. I'm in favor of the move. @kelson42 WDYT?

from libkiwix.

rgaudin avatar rgaudin commented on August 24, 2024

Looks like hyphens (-) are triggering it as well

from libkiwix.

kelson42 avatar kelson42 commented on August 24, 2024

I'm in favour of that move, but this should not impact other metadata of the ZIM file, so only the Name... but if I look to the code, this seems to be already the case! @mgautierfr Can you please provide the quickfix?

from libkiwix.

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.