Reputation: 7077
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
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