"query" : { "match_phrase_prefix" : { "company.name" : "agnes" } },
"explain" : true
I'm guessing this is more info then needed for this senario but here
goes the full response:
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 4406
{
"took":2,
"timed_out":false,
"_shards":{
"total":4,
"successful":4,
"failed":0
},
"hits":{
"total":8,
"max_score":5.593096,
"hits":[
{
"_shard":3,
"_node":"Z7swhx3jR-6oZWQ47bYkIw",
"_index":"tandlakare",
"_type":"view_data",
"_id":"352",
"_score":5.593096,
"_source":{
"id":"352",
"company":{
"name":"Tandl\u00e4kare Agneta Hultin
Tandl\u00e4karhuset"
},
"url_structure":"/stockholm/\u00e5kersberga/tandl\u00e4kare-agneta-hultin-tandl\u00e4karhuset",
"street_address":"Saturnusv\u00e4gen 2",
"subscription_id":"1",
"img":"",
"city":"\u00c5kersberga",
"tstamp":"2013-02-21T13:51:26",
"location":"59.477667565305000000,18.295774234384000000",
"_boost":"1.0"
},
"_explanation":{
"value":5.593096,
"description":"weight(company.name:agnet in 88)
[PerFieldSimilarity], result of:",
"details":[
{
"value":5.593096,
"description":"fieldWeight in 88, product of:",
"details":[
{
"value":1.0,
"description":"tf(freq=1.0), with freq of:",
"details":[
{
"value":1.0,
"description":"termFreq=1.0"
}
]
},
{
"value":11.186192,
"description":"idf(docFreq=3,
maxDocs=106137)"
},
{
"value":0.5,
"description":"fieldNorm(doc=88)"
}
]
}
]
}
},
{
"_shard":3,
"_node":"Z7swhx3jR-6oZWQ47bYkIw",
"_index":"tandlakare",
"_type":"view_data",
"_id":"2291",
"_score":5.593096,
"_source":{
"id":"2291",
"company":{
"name":"Carin Agneta Axeltorp"
},
"url_structure":"/sk\u00e5ne/limhamn/carin-agneta-axeltorp",
"street_address":"Abbedissgatan 7",
"subscription_id":"1",
"img":"",
"city":"Limhamn",
"tstamp":"2012-11-14T01:37:47",
"location":"55.572641300000000797,12.951067099999999499",
" _boost":"1.0"
},
"_explanation":{
"value":5.593096,
"description":"weight(company.name:agnet in 571)
[PerFieldSimilarity], result of:",
"details":[
{
"value":5.593096,
"description":"fieldWeight in 571, product of:",
"details":[
{
"value":1.0,
"description":"tf(freq=1.0), with freq of:",
"details":[
{
"value":1.0,
"description":"termFreq=1.0"
}
]
},
{
"value":11.186192,
"description":"idf(docFreq=3,
maxDocs=106137)"
},
{
"value":0.5,
"description":"fieldNorm(doc=571)"
}
]
}
]
}
},
{
"_shard":2,
"_node":"Z7swhx3jR-6oZWQ47bYkIw",
"_index":"tandlakare",
"_type":"view_data",
"_id":"881",
"_score":5.5646315,
"_source":{
"id":"881",
"company":{
"name":"St. Agnes"
},
"url_structure":"/v\u00e4stra
g\u00f6taland/alings\u00e5s/st.-agnes",
"street_address":"V\u00e4stra Ringgatan 1 A",
"subscription_id":"1",
"img":"",
"city":"Alings\u00e5s",
"tstamp":"2012-11-14T01:37:26",
"location":"57.931587100000001556,12.529198600000000852",
"_boost":"1.0"
},
"_explanation":{
"value":5.5646315,
"description":"sum of:",
"details":[
{
"value":5.5646315,
"description":"weight(company.name:agn in 218)
[PerFieldSimilarity], result of:",
"details":[
{
"value":5.5646315,
"description":"score(doc=218,freq=1.0 =
termFreq=1.0\n), product of:",
"details":[
{
"value":0.74948466,
"description":"queryWeight, product
of:",
"details":[
{
"value":11.879376,
"description":"idf(docFreq=1,
maxDocs=106141)"
},
{
"value":0.06309125,
"description":"queryNorm"
}
]
},
{
"value":7.42461,
"description":"fieldWeight in 218,
product of:",
"details":[
{
"value":1.0,
"description":"tf(freq=1.0),
with freq of:",
"details":[
{
"value":1.0,
"description":"termFreq=1.0"
}
]
},
{
"value":11.879376,
"description":"idf(docFreq=1,
maxDocs=106141)"
},
{
"value":0.625,
"description":"fieldNorm(doc=218)"
}
]
}
]
}
]
}
]
}
},
{
"_shard":0,
"_node":"Z7swhx3jR-6oZWQ47bYkIw",
"_index":"tandlakare",
"_type":"view_data",
"_id":"2432",
"_score":3.9855573,
"_source":{
"id":"2432",
"company":{
"name":"Tandl\u00e4kare Agneta Knutsson"
},
"url_structure":"/sk\u00e5ne/limhamn/tandl\u00e4kare-agneta-knutsson",
"street_address":"Geijersgatan 8",
"subscription_id":"1",
"img":"",
"city":"Limhamn",
"tstamp":"2012-11-14T01:37:49",
"location":"55.590610499999996819,12.941211600000000814",
"_boost":"1.0"
},
"_explanation":{
"value":3.9855573,
"description":"sum of:",
"details":[
{
"value":3.9855573,
"description":"weight(company.name:agnet in 609)
[PerFieldSimilarity], result of:",
"details":[
{
"value":3.9855573,
"description":"score(doc=609,freq=1.0 =
termFreq=1.0\n), product of:",
"details":[
{
"value":0.694725,
"description":"queryWeight, product
of:",
"details":[
{
"value":11.47377,
"description":"idf(docFreq=2,
maxDocs=106126)"
},
{
"value":0.060548972,
"description":"queryNorm"
}
]
},
{
"value":5.736885,
"description":"fieldWeight in 609,
product of:",
"details":[
{
"value":1.0,
"description":"tf(freq=1.0),
with freq of:",
"details":[
{
"value":1.0,
"description":"termFreq=1.0"
}
]
},
{
"value":11.47377,
"description":"idf(docFreq=2,
maxDocs=106126)"
},
{
"value":0.5,
"description":"fieldNorm(doc=609)"
}
]
}
]
}
]
}
]
}
}
]
}
}
On Thu, Sep 19, 2013 at 9:12 AM, sina.tamanna@gmail.com wrote:
As Ivan mentioned, it would be easier to help if you have the result
of scoring explained. You could achieve this by appending "explain" : true
to the query:
"query" : { "match_phrase_prefix" : { "name" : "agnes" } }, "explain"
: true
As for the number of shards and documents take a look at:
Elasticsearch Platform — Find real-time answers at scale | Elastic
Elasticsearch Platform — Find real-time answers at scale | Elastic
--
You received this message because you are subscribed to a topic in
the Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/at_AzCukPJ4/unsubscribe
.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.