I am searching for a keyword in my aws elasticsearch where it is indexed seperately and it is also present in other fields that are indexed. The problem is I am not able to search it when it is prefixed with some other alphabets. eg. It is not showing any result when i search "X12" when it is present as "ABX12".
Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
Cloud by elastic is one way to have access to all features, all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL, Canvas, APM, Logs UI, Infra UI, SIEM, Maps UI and what is coming next ...
I will put the script, but for the time being please understand from example only.
I have a field with name message with value ABCDE i have another field with name operation with value CDE. but when i search CDE kibana search all operation with value CDE are recognized but message field with value ABCDE is not recognized.
You can use:
- https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-prefix-query.html (I'd not)
- https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html (I'd not)
- https://www.elastic.co/guide/en/elasticsearch/reference/7.2/analysis-ngram-tokenizer.html or https://www.elastic.co/guide/en/elasticsearch/reference/7.2/analysis-ngram-tokenfilter.html
- With the last example you gave, I'd probably use (https://www.elastic.co/guide/en/elasticsearch/reference/7.2/analysis-edgengram-tokenizer.html or https://www.elastic.co/guide/en/elasticsearch/reference/7.2/analysis-edgengram-tokenfilter.html) + https://www.elastic.co/guide/en/elasticsearch/reference/7.2/analysis-reverse-tokenfilter.html
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.