Has support for percolating multiple EXISTING documents been added?

Hello!

Question about Percolator Queries in ES 8.x...

Wondering if the ability to query multiple EXISTING docs has been added to the API?

I know I can query multiple raw documents such as

GET /my-index-000001/_search
{
  "query": {
    "percolate": {
      "field": "query",
      "documents": [ 
        {
          "message": "bonsai tree"
        },
        {
          "message": "new tree"
        },
        {
          "message": "the office"
        },
        {
          "message": "office tree"
        }
      ]
    }
  }
}

or an individual, already indexed document:

GET /my-index-000001/_search
{
  "query": {
    "percolate": {
      "field": "query",
      "index": "my-index-000001",
      "id": "2",
      "version": 1 
    }
  }
}

but has support been added to specify multiple ALREADY INDEXED documents in a single request?

I see a closed github ticket from 2018 requesting this feature. Add support for specifying multiple ids in the percolate query · Issue #28573 · elastic/elasticsearch · GitHub

Has this been implemented or are there any workarounds? ..I couldn't find any.

Thanks for any help!

Welcome to our community! :smiley:

There's no way to do this no, sorry!

Thanks Mark,

Is there any plan to implement this in the near future? Any reason why this isn't done?

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