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

NGram index creation/usage example in the documentation #8457

Open
MiklosPathy opened this issue Feb 11, 2025 · 2 comments
Open

NGram index creation/usage example in the documentation #8457

MiklosPathy opened this issue Feb 11, 2025 · 2 comments
Labels
8.x Relates to 8.x client version Category: Question

Comments

@MiklosPathy
Copy link

Is your feature request related to a problem? Please describe.
Actually, yes. I would like to create such an index on a filed, but my knowledge is limited to do it with the .NET API.

Describe the solution you'd like
A section in the documentation with this particular example, maybe more advanced examples.

Describe alternatives you've considered
Tried to search for something like this. I found an issue similar to this on Stack Overflow, but the guy gave up, and created his index with web api, and direct json. ChatGPT hallucinates something based on the old 7.x API, but it is unusable with 8.x. The closest i was, to create an analyser, but i was not able to bind it to a field.

Additional context
Nothing special, just a code snippet. For example: here is a type: Document, it has a field DocText, this is how you create the index, with NGram analyser, this is how you use it for searching.

@flobernd
Copy link
Member

Hey @MiklosPathy, could you please post the JSON request for creating the desired index?

@flobernd flobernd added 8.x Relates to 8.x client version Category: Question and removed Category: Feature labels Feb 11, 2025
@MiklosPathy
Copy link
Author

Hey @MiklosPathy, could you please post the JSON request for creating the desired index?

Unfortunately, I am not on that level in ElasticSearch. Any example would do, I (and probably many other) will figure out the rest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.x Relates to 8.x client version Category: Question
Projects
None yet
Development

No branches or pull requests

2 participants