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

Better tokenizer #161

Open
ptbrowne opened this issue Jan 22, 2020 · 0 comments
Open

Better tokenizer #161

ptbrowne opened this issue Jan 22, 2020 · 0 comments

Comments

@ptbrowne
Copy link
Contributor

fromOldClient does not return any result in docs.cozy.io search.
CozyClient.fromOldClient does return the result.

IMHO this is caused by the tokenizer, that considers the point not to be separating two words which causes "fromOldClient" not to be a word.

I think we tweaked the tokenizer because we needed doctypes to be returned as is, that is : the dot should not split doctypes like "io.cozy.bills" but should split CozyClient.fromOldClient.

Since doctypes can be inferred as having at least 2 dots, and no starting capital, we could maybe improve the tokenizer to support both cases.

See

tokenizer: "[^a-z\u0430-\u044F\u04510-9\\-\\.]"

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

1 participant