I am trying to do the follwing query but it is showing error
{
"query": {
"boosting": {
"positive": {
"term": {
"name": "kamal"
}
},
"negative": {
"term": {
"email": "abc"
}
}
}
}
}
--
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/764af94e-0ff3-4993-a0ec-df0b02444619%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Navneet,
What error you are getting while running above command?
Try following Query:
curl -XPOST "localhost:9200/indexName/indexType/_search?pretty=true" -d '
{
"query" : {
"boosting" : {
"positive" : {
"term" : {
"name" : "kamal"
}
},
"negative" : {
"term" : {
"email" : "abc"
}
},
"negative_boost" : 0.5
}
}
}
--
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/111428e1-cd83-4dc9-8614-09be7d03bcbf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
if I am running the above command it is showing SearchPhaseExecutionException
error ... but the command you have suggested working fine.
Thanks.
On Tuesday, 4 February 2014 14:24:39 UTC+5:30, Jayesh Bhoyar wrote:
Hi Navneet,
What error you are getting while running above command?
Try following Query:
curl -XPOST "localhost:9200/indexName/indexType/_search?pretty=true" -d '
{
"query" : {
"boosting" : {
"positive" : {
"term" : {
"name" : "kamal"
}
},
"negative" : {
"term" : {
"email" : "abc"
}
},
"negative_boost" : 0.5
}
}
}
--
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/429f456d-787c-4e28-b70f-e45022d308c3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.