openzim / openzim/devdocs

Do not index irrelevant content of the pages

Open
#40 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
9
Forks
3
PR merge metrics
No merged PRs in 30d

Description

We shouldn't index some parts of the page which are not relevant:

Image

This is a hard feature since all this comes from online, and is a bit different in every project.

Note that default HTML parser from libzim (I don't recall if we use it or not) ignores everything inside <!-- htdig_noindex -->...<!-- /htdig_noindex -->

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the scraper's page-indexing path and checking whether libzim's HTML parser is used, then compare the page parts that should be excluded across projects. Done means an agreed, project-appropriate way to omit irrelevant content from the index.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.