Test an analyzer

Use this API to submit a text to an analyzer:

Parameters:

curl -XPOST -H 'Content-Type: text/plain'  -d "Déjà vu" \
    "http://localhost:9091/indexes/my_index/analyzers/FrenchAnalyzer"

Response

Returns the extracted terms with the metadata:

[ {
  "char_term" : "deja",
  "start_offset" : 0,
  "end_offset" : 4,
  "position_increment" : 1,
  "position_length" : 1,
  "type" : "<ALPHANUM>",
  "is_keyword" : false
}, {
  "char_term" : "vu",
  "start_offset" : 5,
  "end_offset" : 7,
  "position_increment" : 1,
  "position_length" : 1,
  "type" : "<ALPHANUM>",
  "is_keyword" : false
} ]