Hi everyone,
I have a java application in which ElasticSearchClient is used for establishing connection with Elasticsearch server. The application uses BulkRequest for indexing documents.
Following code index the documents in bulk.
BulkResponse bulkResponse = ElasticSearchConfiguration.elasticsearchClient
.bulk(r -> r.index(index).operations(bulkOperations));
I want to use custom analyzer which uses ngram tokenizer while indexing.
Can anyone guide me on how to achieve this in java?