Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Parse subtittles

Israel Yago Pereira requested to merge 3-parse-subtitles into master

Closes #3

How to test

  1. Follow the README.md instructions on how to setup the project for development
  2. After the server is running (flask run) run python src/main.py "PATH_TO_YOUR_CONTENT" where PATH_TO_YOUR_CONTENT is the cache folder created with the docker run --rm --volume="$PWD/htdocs:/srv/jekyll" -p 4000:4000 -p 35729:35729 -it jekyll/jekyll:4.2.0 jekyll serve --profile --incremental --livereload of the user docs.
  3. After the content was indexed, go to http://localhost:5000/en/search/lost%20my%20phone (This is the "lost my phone" query)

Assert that

  • The page with the url /support-topics/services.html is the first result
  • That similar queries also find that page

Notes

Some queries will not find the correct page as desired by the user. Our current documentation was not designed to be searchable, i.e. with SEO in mind.

This MR reduces the gap of the expectation of the results that we as human wanted vs the actual result, but this MR do not eliminate the gap.

Edited by Israel Yago Pereira

Merge request reports

Loading