Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use libzim IndexData::getContent to provide currated content to index. #1810

Closed
mgautierfr opened this issue Mar 14, 2023 · 5 comments
Closed

Comments

@mgautierfr
Copy link

libzim provides a way for scrappers to provide a different content than the one stored for the indexation.

It allow a better indexation when a lot of content is not relevant about the subject of the content itself.

mwoffliner should parse the html content and extract only the relevant information (so remove thing such has menu, footer, examples, ...)

See comments in openzim/libzim#653

@kelson42
Copy link
Collaborator

@mgautierfr Can you please expkain:

  • the problem to fix, with at one concrete example
  • how your proposal would fix it
    ... because I don't get it.

@Jaifroid
Copy link
Collaborator

See also #1725, which looks similar. Note comments there.

@mgautierfr
Copy link
Author

The idea is that we want to index a content different that what we are storing.
Some content don't have to be indexed. Some other content cannot be indexed (a video) and we want to provide a textual description (from subtitle ?) to index it anyway.

The problem is less visible than I expected on mwoffliner as we use the mobile version and it doesn't include all menus and side bars.

But I have found this one : https://library.kiwix.org/viewer#search?books.name=wikipedia_en_physics_maxi_2023-02&pattern=gazette

The results are not related to gazette. But as the references are coming from gazette, the articles seems relevant to xapian.

  • mwoffliner may decide to remove all reference from the indexed content (while keeping it in the content itself).
  • We could also decide to index only the beginning of the article (equivalent to indexing the nodet flavor) as the beginning has more chance to describe what is the subject of the article and the rest of the article may add "false positive" by going more in the details and make parallel with other subjects.
  • Or we could get the source of the article and index that while storing the rendered (html) content.
  • Or mwoffliner may make a specific request (if it exists) on mediawiki to get keyword/curated content from the search engine itself and index that.

@kelson42
Copy link
Collaborator

@mgautierfr perfectly agree, just that i see no straight relation to openzim/libzim#653. Depends on #1576

@kelson42
Copy link
Collaborator

@Jaifroid Thank you for remembering #1725, went actually out of my radar. This is indeed a duplicate of this one. We agree on the improvement potential and on rhe approach.

@kelson42 kelson42 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 17, 2023
@kelson42 kelson42 self-assigned this Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants