1

I am getting the following error when I try and use a template search on an AWS elasticsearch cluster using the query

"match": { "title": "copyright" }

Parse Failure [Failed to parse source [{\"match\"{\"title\":\"copyright\"}}]]]; 
nested: Parse Failure [No parser for element [match]]];

The query is failing during the search phase, whilst trying to parse the query.

Why is the Parse failing?

My query works fine for a localhost elasticsearch instance.

Here is my mapping for the index type:

properties: {
  title: { type: 'string' },
  toc: {
    type: 'nested',
    properties: {
      title:  { type: 'string' },
    },
  },
},
1
  • Please mention the query you are running. Commented Jan 29, 2016 at 16:55

1 Answer 1

0

AWS Elasticsearch service supports an older version of elasticsearch to the one I was using, 1.5.2, compared to 2.1. This older version supports a different syntax for template searches, where the template attribute is used instead of the inline attribute to supply your template, show here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.