Comments (4)
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.
OK thank you for the explanation. I'm in favor of the move. @kelson42 WDYT?
from libkiwix.
Looks like hyphens (-
) are triggering it as well
from libkiwix.
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)
- sync releases with library users HOT 5
- Add IPV6 support HOT 2
- To import bookmarks in android we require the `library.xml` HOT 10
- Suggestions for improving Kiwix-server for blind people HOT 5
- βBlkβ language is not displayed properly in Kiwix Serve language filter HOT 7
- library.kiwix.org appears to have stopped updating HOT 1
- Release 14.0.0
- Edge case: kiwix-serve style & script injection fails if optional </head> tag is not present HOT 2
- Add download button in the preview of ZIMs in library.kiwix.org HOT 3
- Kiwix Server viewer βhomeβ button is most of he time not big enough HOT 1
- Remove `KIWIX_DATA_DIR` HOT 3
- `kiwix::getDataDirectory()` should be moved to `kiwix/kiwix-desktop` repository HOT 1
- Relax the Content-Security-Policy to allow `mailto:` links in the Kiwix Serve iframe HOT 2
- ZIM size advertized in library is in MB while users see a MiB value in many other places HOT 2
- Remove Multiple Languages filter
- `OPDSParser.parse` is always returning true HOT 8
- Allocation of icu transliterator in removeAccents on apple fails HOT 2
- ZIM Illustration is resized in the catalog UI and hence a bit blurry HOT 2
- Expose support for i18n/translation in the public C++ API HOT 2
- kiwix-serve raises 500 error on `Or` search term
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libkiwix.