Hello

How is score calculated? 

GET /business/actividades,alojamiento,comida,transporte_&_servicios/_search
{
  "query": {
    "filtered": {
      "query": {
        "match": {
          "name": "Sheraton"
        }
      }
    }
  }
}

Response

{
   "took": 4,
   "timed_out": false,
   "_shards": {
      "total": 5,
      "successful": 5,
      "failed": 0
   },
   "hits": {
      "total": 506,
      "max_score": 6.8087983,
      "hits": [
         {
            "_index": "business",
            "_type": "alojamiento",
            "_id": "273825",
            "_score": 6.8087983,
            "_source": {
               "name": "Sheraton",
               "reviews": 2
            }
         },
         {
            "_index": "business",
            "_type": "alojamiento",
            "_id": "252355",
            "_score": 6.8087983,
            "_source": {
               "name": "Sheraton",
               "reviews": 1
            }
         },
         {
            "_index": "business",
            "_type": "alojamiento",
            "_id": "132774",
            "_score": 6.8087983,
            "_source": {
               "name": "Sheraton",
               "reviews": 1
            }
         },
         {
            "_index": "business",
            "_type": "alojamiento",
            "_id": "225509",
            "_score": 6.8087983,
            "_source": {
               "name": "Sheraton",
               "reviews": 2
            }
         },
         {
            "_index": "business",
            "_type": "alojamiento",
            "_id": "232124",
            "_score": 6.8087983,
            "_source": {
               "name": "Sheraton",
               "reviews": 1
            }
         },
         {
            "_index": "business",
            "_type": "alojamiento",
            "_id": "219172",
           * "_score": 6.8087983,*
            "_source": {
               "name": "Sheraton",
               "reviews": 0
            }
         },
         {
            "_index": "business",
            "_type": "alojamiento",
            "_id": "224180",
          *  "_score": 6.7636743,*
            "_source": {
               "name": "Sheraton",
               "reviews": 3
            }
         },
         {
            "_index": "business",
            "_type": "alojamiento",
            "_id": "268979",
            "_score": 6.7636743,
            "_source": {
               "name": "Sheraton",
               "reviews": 12
            }
         },
         {
            "_index": "business",
            "_type": "alojamiento",
            "_id": "228353",
            "_score": 6.7636743,
            "_source": {
               "name": "Sheraton",
               "reviews": 2
            }
         },
         {
            "_index": "business",
            "_type": "alojamiento",
            "_id": "112508",
            "_score": 6.7636743,
            "_source": {
               "name": "Sheraton",
               "reviews": 9
            }
         }
      ]
   }
}

Because the score is different in some cases? If the name is the same

Thanks!!


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/bcaf4e31-f64a-4cc7-8b2f-986212216b9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to