Dan Hook
Dan Hook

Reputation: 7077

Testing ElasticSearch custom analyzers

Is there a way to test a custom analyzer using

GET /_analyze

I've been able to test the standard analyzers that way.

Upvotes: 2

Views: 1709

Answers (1)

Olly Cruickshank
Olly Cruickshank

Reputation: 6180

Define your custom analyzer in your index and then call using the _analyze API. Here cust_analyser is the name of my custom analyser:

curl -XGET 'localhost:9200/myindex/_analyze?analyzer=cust_analyser' -d 'my data'

Upvotes: 3

Related Questions