Term position

Data:

POST /my_index/my_type/_bulk
{ "index": { "_id": 1 }}
{ "title": "The quick brown fox" }
{ "index": { "_id": 2 }}
{ "title": "The quick brown fox jumps over the lazy dog" }
{ "index": { "_id": 3 }}
{ "title": "The quick brown fox jumps over the quick dog" }
{ "index": { "_id": 4 }}
{ "title": "Brown fox brown dog" }

Input:

GET /_analyze?analyzer=standard
Quick brown fox

Error:

{
  "error": {
   
     "root_cause": [
          {
            "type": "action_request_validation_exception",
            "reason": "Validation Failed: 1: text is missing;"
          }
        ],
        "type": "action_request_validation_exception",
        "reason": "Validation Failed: 1: text is missing;"
      },
      "status": 400
    }

Please help me to resolve this error

That _analyze request is incorrect. Try this:

GET /_analyze
{
  "analyzer": "standard",
  "text": "Quick brown fox"
}

Thanks alot @abdon this works fine for me

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.