Skip to content

Docs bug: mappings can contain multiple percolator fields #25935

@rfraposa

Description

@rfraposa

According to https://www.elastic.co/guide/en/elasticsearch/reference/current/percolator.html

Also an index can only contain up to one percolator field mapping. Multiple percolator fields will be rejected by the put index and put mapping APIs.

@martijnvg pointed out that this is not an accurate statement, and it's actually easy to verify. The following PUT command works fine:

PUT my_test_index
{
  "mappings": {
    "doc": {
      "properties": {
        "query1": {
          "type": "percolator"
        },
        "query2": {
          "type": "percolator"
        }
      }
    }
  }
}

I suspect the comment can simply be removed.

Metadata

Metadata

Assignees

Labels

>bug>docsGeneral docs changes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions