# Percolator query problem

**URL:** https://discuss.elastic.co/t/percolator-query-problem/22937
**Category:** Elasticsearch
**Created:** [March 27, 2015, 3:36am UTC](https://discuss.elastic.co/t/percolator-query-problem/22937 "2015-03-27T03:36:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![11170](https://avatars.discourse-cdn.com/v4/letter/1/c2a13f/32.png) [@11170](https://discuss.elastic.co/u/11170)
#### Post date: [March 27, 2015, 3:36am UTC](https://discuss.elastic.co/t/percolator-query-problem/22937/1 "2015-03-27T03:36:22Z")

</div>

sorry, I can't write English.

watch my source.  
curl -XPUT 'localhost:9200/filters/.percolator/6' -d '{  
"query": {  
"bool": {  
"must": [  
{  
"range": {  
"price": {  
"gte": "100",  
"lte": "20000"  
}  
}  
},  
{  
"match": {  
"prod\_name": {  
"type": "phrase",  
"operator": "and",  
"query": "iphone"  
}  
}  
}  
]  
}  
}  
}'  
{"\_index":"filters","\_type":".percolator","\_id":"6","\_version":1,"created":true}

percolator soure..

curl -XGET 'localhost:9200/filters/.percoaltor/\_percolate' -d '{  
"doc" : {  
"price" : "2011",  
"prod\_name" : "iphone"  
}  
}' \<-- it not working...

I don't know wy....

mapping problem?

mapping  
.percolator": {

- "\_id": {
  - "index": "not\_analyzed"  
},

- "properties": {
  - "create\_dt": {
    - "type": "long"  
},

  - "price": {
    - "type": "long"  
},

  - "query": {
    - "enabled": false,
    - "type": "object"  
},

  - "parent\_category": {
    - "type": "string"  
},

  - "detail\_category": {
    - "type": "string"  
},

  - "site\_name": {
    - "type": "string"  
},

  - "reg\_dt": {
    - "type": "long"  
},

  - "filter": {
    - "properties": {
      - "range": {
        - "properties": {
          - "price": {
            - "properties": {
              - "to": {
                - "type": "long"  
},

              - "from": {
                - "type": "long"  
}  
}  
}  
}  
}  
}  
},

  - "prod\_name": {
    - "type": "string"  
}  
}

},

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1f6b7d1c-5a19-4692-91d1-fb2e96037cb1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/1f6b7d1c-5a19-4692-91d1-fb2e96037cb1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 12:23am UTC](https://discuss.elastic.co/t/percolator-query-problem/22937/2 "2017-07-06T00:23:32Z")

</div>


