Output field in autocomplete suggestion

(Benjamin) #1

Hi everyone,

when I want to index a document in elasticsearch this problem occurring:
message [MapperParsingException[failed to parse]; nested: IllegalArgumentException[unknown field name [output], must be one of [input, weight, contexts]];]

I know that the output field removed from elasticsearch in version 5 but why? and what I have to do for getting single result for inputs?

(Igor Motov) #2

Hi Benjamin,

The best place to learn more about the breaking changes between versions and the reasons for making these changes are the corresponding Breaking Changes pages of our documentation. In this particular case, you are probably looking for the Simpler completion indexing section of the page I linked above.

(iluvcode) #3

I had the same issue with completion suggest after upgrading from v1.7.1 to v5.1.
Using "Text" field in the document fixed the issue.

"_index": "elasticsearchlocal",
"_type": "categoryautocomplete",
"_id": "204",
"_score": 1,
"_source": {
"nodeId": 204,
"categoryDescription": {
"input": [
"Hair Products",
"Products Hair"
"weight": 1
"text": "Hair Products",
"id": 204,
"hasMoreRecord": false,
"contentTypeId": 0

(system) #4

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