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

Non latin keywords are not getting indexed while indexing pages #12

Open
stultus opened this issue Aug 12, 2018 · 4 comments
Open

Non latin keywords are not getting indexed while indexing pages #12

stultus opened this issue Aug 12, 2018 · 4 comments
Assignees

Comments

@stultus
Copy link
Member

stultus commented Aug 12, 2018

  • I tested with a malayalam website : https://smc.org.in
  • I'm getting proper results for english keywords
  • But there are no results for malayalam keywords. even exact words are not matching (eg: രചന)
@stultus stultus self-assigned this Aug 12, 2018
@minimalparts
Copy link
Member

Is this perhaps because of the boilerplate removal? What happens if you do the following:

In app/indexer/htmlparser.py, extract_from_url function:

  • comment the boilerplate removal and use beautifulsoup instead to get the text of the page:

    #body_str = remove_boilerplates(req)
    body_str = ' '.join(bs_obj.findAll(text=True))

  • add Malayalam to the list of 'okay' languages:

    if detect(title + " " + body_str) not in ["en","ml"]:

@stultus
Copy link
Member Author

stultus commented Aug 12, 2018

This works on an all malayalam web page. eg: https://smc.org.in/fonts/
But on a page where there are mixed content (English and Malayalam), only english contents are indexed. eg: https://smc.org.in

@minimalparts
Copy link
Member

This is an old issue, but I think it is still relevant. @stultus, have you checked how the new version behaves wrt code-switching? My guess is: badly :(

@stultus
Copy link
Member Author

stultus commented Oct 23, 2022

I will test and update this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants