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

Different analyzers in index-time and query-time #12754

Open
shayantabrizi opened this issue Aug 2, 2021 · 1 comment
Open

Different analyzers in index-time and query-time #12754

shayantabrizi opened this issue Aug 2, 2021 · 1 comment

Comments

@shayantabrizi
Copy link

I want to request a feature on full text search, and to do so let me first explain an example.

Assume that the query is "Javad" and we want to retrieve a document if it contains, e.g., "Javad" or "MohammadJavad" or "Javadi" or "SeyedJavad". But we do not want to retrieve a document if it only contains, e.g., "Java". This may be a reasonable expectation for search in a language like Persian. Or, for example, the query is "Jen" and we want to retrieve a document if it contains "Jennifer".

As far as I know, full-text search in Neo4j uses the same index on both the documents and the query. Thus, if we want to use n-grams with, e.g., n=4 (so that MohammadJavad is matched for Javad), also Java is matched for Javad because n-gram is also applied to the query term Javad. But if we could specify that we only want to apply the n-gram to the documents but not to the query, we could have achieved what we wanted.

So, I request adding this possibility to Neo4j. I guess that it's not very hard to do so, but it may help a lot, especially for some language like Persian or maybe Arabic.

A similar issue was formerly mentioned here , but it also wasn't solved. Considering the effort it requires to implement this feature and the benefit it may have for the users, I think that this feature is something worth considering by the Neo4j developers.

@mnd999
Copy link
Contributor

mnd999 commented Aug 3, 2021

Thanks for the request, I've passed it to the product team.

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

2 participants