# Weights to Geo Bounding Boxes

**URL:** <https://discuss.elastic.co/t/weights-to-geo-bounding-boxes/137767>\
**Category:** Elasticsearch\
**Created:** [June 28, 2018, 9:12am UTC](https://discuss.elastic.co/t/weights-to-geo-bounding-boxes/137767 "2018-06-28T09:12:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgsd](https://avatars.discourse-cdn.com/v4/letter/k/e9c0ed/32.png) [@kgsd](https://discuss.elastic.co/u/kgsd)\
**Post date:** [June 28, 2018, 9:12am UTC](https://discuss.elastic.co/t/weights-to-geo-bounding-boxes/137767/1 "2018-06-28T09:12:27Z")

</div>

In a function score calculation, if I assign a weight to a geo-bounding box as below,

 ![Screenshot%20from%202018-06-28%2014-28-16](https://us1.discourse-cdn.com/elastic/original/3X/5/7/57c0641a657bc2d7a5571d538e251ae492e93838.jpg)  
weight : 4  
filter :  
geo\_bounding\_box :  
location :  
top\_right : tg  
bottom\_left : t3

Do I get my results with equal weights(4, in this case) assigned to all t7, te, tg, t6, td, tf, t3, t9, tc?  
Or is there any way in which I can filter all relevant results with in all these 9 sets but with a higher preference to the documents with td location?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 26, 2018, 9:12am UTC](https://discuss.elastic.co/t/weights-to-geo-bounding-boxes/137767/2 "2018-07-26T09:12:28Z")

</div>

Closed on July 26, 2018, 9:12am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
