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"
},
- "index": "not_analyzed"
- "properties": {
- "create_dt": {
- "type": "long"
},
- "type": "long"
- "price": {
- "type": "long"
},
- "type": "long"
- "query": {
- "enabled": false,
- "type": "object"
},
- "parent_category": {
- "type": "string"
},
- "type": "string"
- "detail_category": {
- "type": "string"
},
- "type": "string"
- "site_name": {
- "type": "string"
},
- "type": "string"
- "reg_dt": {
- "type": "long"
},
- "type": "long"
- "filter": {
- "properties": {
- "range": {
- "properties": {
- "price": {
- "properties": {
- "to": {
- "type": "long"
},
- "type": "long"
- "from": {
- "type": "long"
}
}
}
}
}
}
},
- "type": "long"
- "to": {
- "properties": {
- "price": {
- "properties": {
- "range": {
- "properties": {
- "prod_name": {
- "type": "string"
}
}
- "type": "string"
- "create_dt": {
},
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1f6b7d1c-5a19-4692-91d1-fb2e96037cb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.