R
R
rraderio2017-02-08 13:29:37
elasticsearch
rraderio, 2017-02-08 13:29:37

How to create Percolate index in Elasticsearch on multiple fields?

There is a product index

curl -XPUT "http://localhost:9200/products/product/1" -d'
{
    "title": "Iphone 6",
    "category_id": 4,
    "price": 7788,
    "owner_id": 21
}'

How to create a percolate index on 3 fields: title, category_id, price?
Percolate Query has an example here but only for 1 field.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question