Please read the error message:
'reason' => 'failed to parse','type' => 'mapper_parsing_exception','ca +used_by' => {'reason' => 'Mixing up field types: class org.elasticsea +rch.index.mapper.core.StringFieldMapper$StringFieldType != class org. +elasticsearch.index.mapper.internal.IndexFieldMapper$IndexFieldType o +n field _index','type' => 'illegal_state_exception'}}}
What you submit does not match what Elasticsearch expects for the string field. So you should lean what Elasticsearch expects and then submit the appropriate data types.
You don't need to convert the Perl data structure to JSON yourself. The Search::Elasticsearch wrappers handle that for you.
In reply to Re^3: Return value of Search::Elasticsearch search query
by Corion
in thread Return value of Search::Elasticsearch search query
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |