0

Need example for elasticsearch percolate using elasticsearch java rest API

Could not find in elasticsearch docs

In previous versions of elastic below is the code for transport client, not sure which one to be used for rest client

PercolateResponse response = client.preparePercolate()
                        .setIndices("myIndexName")
                        .setDocumentType("myDocumentType")
                        .setSource(docBuilder).execute().actionGet();
Developer
  • 299
  • 1
  • 2
  • 11

1 Answers1

0

I figured out that We have to use search api with PercolateQueryBuilder

Developer
  • 299
  • 1
  • 2
  • 11