Hi Adrien,

I know the explain api but I couldn't find the effective way of getting 
information from the api.

Thanks.

On Sunday, March 29, 2015 at 11:01:15 PM UTC+3, Adrien Grand wrote:
>
> Hi Terra,
>
> This information is not available. For debugging purposes though, you can 
> use 'explain' to have an explanation of how the score was computed, which 
> will also tell you which clauses matched: 
> http://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html
>
> On Sun, Mar 29, 2015 at 4:39 PM, Terra Sacer <terra...@gmail.com 
> <javascript:>> wrote:
>
>> Is this not possible?
>>
>>
>> On Saturday, March 28, 2015 at 6:33:53 PM UTC+2, Terra Sacer wrote:
>>>
>>> Hello everyone,
>>>
>>> For example my data
>>>
>>> [
>>>     { "id" : 1, "type"  : "article", "title" : "About the Java 
>>> Technology" },
>>>     { "id" : 2, "type"  : "article", "title" : "How does ElasticSearch 
>>> work" },
>>>     { "id" : 3, "type"  : "article", "title" : "How to get the count of 
>>> results ElasticSearch" }
>>> ]
>>>
>>> When we run the following command
>>>
>>> GET myindex/article/_search
>>> {
>>>   "query": {
>>>     "bool": {
>>>       "should": [
>>>         {
>>>           "match": {
>>>             "title": "how count elasticsearch"
>>>           }
>>>         }
>>>       ]
>>>     }
>>>   }
>>> }
>>>
>>> We get these results
>>>
>>> {
>>>    "took": 776,
>>>    "timed_out": false,
>>>    "_shards": {
>>>       "total": 5,
>>>       "successful": 5,
>>>       "failed": 0
>>>    },
>>>    "hits": {
>>>       "total": 2,
>>>       "max_score": 0.16608897,
>>>       "hits": [
>>>          {
>>>             "_index": "myindex",
>>>             "_type": "article",
>>>             "_id": "3",
>>>             "_score": 0.16608897,
>>>             "_source": {
>>>                "title": "How to get the count of results ElasticSearch"
>>>             }
>>>          },
>>>          {
>>>             "_index": "myindex",
>>>             "_type": "article",
>>>             "_id": "2",
>>>             "_score": 0.05758412,
>>>             "_source": {
>>>                "title": "How does ElasticSearch work"
>>>             }
>>>          }
>>>       ]
>>>    }
>>> }
>>>
>>> Now the question is: Contains a maximum term(how, count and 
>>> elasticsearch) the third document, match 100%
>>>
>>> *How can get this information from ElasticSearch?*
>>>
>>> I can benefit from the score and max_scor information when query match 
>>> is 100% but when it is not 100% match?
>>>
>>> Please help me :)
>>>
>>  -- 
>> 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 elasticsearc...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elasticsearch/f8ea789f-edfa-4351-b939-d815ddbd2c9f%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/elasticsearch/f8ea789f-edfa-4351-b939-d815ddbd2c9f%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> <http://www.elastic.co>
>  

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/b02a5049-47dc-45eb-acb0-1788dd945ead%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to