# Newbie Questions ( Score & Geo Sharding)

**URL:** <https://discuss.elastic.co/t/newbie-questions-score-geo-sharding/9077>\
**Category:** Elasticsearch\
**Created:** [September 20, 2012, 5:10pm UTC](https://discuss.elastic.co/t/newbie-questions-score-geo-sharding/9077 "2012-09-20T17:10:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Rosenthal](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@Aaron\_Rosenthal](https://discuss.elastic.co/u/Aaron_Rosenthal)\
**Post date:** [September 20, 2012, 5:10pm UTC](https://discuss.elastic.co/t/newbie-questions-score-geo-sharding/9077/1 "2012-09-20T17:10:43Z")

</div>

We are building a new index and are looking to use elasticsearch. We have a  
few questions about design patterns.

1. Can we replace score with our own scoring data.

2. What is the best method to shard our data. Our users will be set to  
search data by county and we have zip codes for each of our documents.

Thanks for any help. We would also like to find someone to help consult  
with us to get our schema and nodes setup in an optimal manner.

Aaron

--

---

<div class="post-metadata">

**Author:** ![What\_Else](https://avatars.discourse-cdn.com/v4/letter/w/e56c9b/32.png) [@What\_Else](https://discuss.elastic.co/u/What_Else)\
**Post date:** [September 20, 2012, 5:37pm UTC](https://discuss.elastic.co/t/newbie-questions-score-geo-sharding/9077/2 "2012-09-20T17:37:59Z")

</div>

What you mean when you say "own scoring data", if you want custom the  
score, you can use the \_boost field. If you don't care about the real score  
so add a field and put a sort when you do a query.

About the geo query, I don't know if I full understand the question but for  
myself, I use the Google Map Service Geocoding to translate address in  
geo\_point and I use it in my queries. Of course, I use the results to  
display it on Google Map 🙂

On Thursday, September 20, 2012 1:10:44 PM UTC-4, Aaron Rosenthal wrote:

> We are building a new index and are looking to use elasticsearch. We have  
> a few questions about design patterns.
> 
> 1. Can we replace score with our own scoring data.
> 
> 2. What is the best method to shard our data. Our users will be set to  
> search data by county and we have zip codes for each of our documents.
> 
> Thanks for any help. We would also like to find someone to help consult  
> with us to get our schema and nodes setup in an optimal manner.
> 
> Aaron

--

---

<div class="post-metadata">

**Author:** ![Aaron\_Rosenthal](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@Aaron\_Rosenthal](https://discuss.elastic.co/u/Aaron_Rosenthal)\
**Post date:** [September 20, 2012, 7:44pm UTC](https://discuss.elastic.co/t/newbie-questions-score-geo-sharding/9077/3 "2012-09-20T19:44:30Z")

</div>

Yea we have our own scoring algorithm, boost would not help. I guess we  
will look into disabling score and create our own field and sort. I will  
also look into geo\_point... thanks

On Thursday, September 20, 2012 10:38:00 AM UTC-7, What-Else wrote:

> What you mean when you say "own scoring data", if you want custom the  
> score, you can use the \_boost field. If you don't care about the real score  
> so add a field and put a sort when you do a query.
> 
> About the geo query, I don't know if I full understand the question but  
> for myself, I use the Google Map Service Geocoding to translate address in  
> geo\_point and I use it in my queries. Of course, I use the results to  
> display it on Google Map 🙂
> 
> On Thursday, September 20, 2012 1:10:44 PM UTC-4, Aaron Rosenthal wrote:
> 
> > We are building a new index and are looking to use elasticsearch. We have  
> > a few questions about design patterns.
> > 
> > 1. Can we replace score with our own scoring data.
> > 
> > 2. What is the best method to shard our data. Our users will be set to  
> > search data by county and we have zip codes for each of our documents.
> > 
> > Thanks for any help. We would also like to find someone to help consult  
> > with us to get our schema and nodes setup in an optimal manner.
> > 
> > Aaron

--

---

<div class="post-metadata">

**Author:** ![What\_Else](https://avatars.discourse-cdn.com/v4/letter/w/e56c9b/32.png) [@What\_Else](https://discuss.elastic.co/u/What_Else)\
**Post date:** [September 20, 2012, 7:52pm UTC](https://discuss.elastic.co/t/newbie-questions-score-geo-sharding/9077/4 "2012-09-20T19:52:43Z")

</div>

Totally forgot, you can use the custom\_query\_score[http://www.elasticsearch.org/guide/reference/query-dsl/custom-score-query.html](http://www.elasticsearch.org/guide/reference/query-dsl/custom-score-query.html) !  
The best option for you i think 🙂

On Thursday, September 20, 2012 3:44:31 PM UTC-4, Aaron Rosenthal wrote:

> Yea we have our own scoring algorithm, boost would not help. I guess we  
> will look into disabling score and create our own field and sort. I will  
> also look into geo\_point... thanks
> 
> On Thursday, September 20, 2012 10:38:00 AM UTC-7, What-Else wrote:
> 
> > What you mean when you say "own scoring data", if you want custom the  
> > score, you can use the \_boost field. If you don't care about the real score  
> > so add a field and put a sort when you do a query.
> > 
> > About the geo query, I don't know if I full understand the question but  
> > for myself, I use the Google Map Service Geocoding to translate address in  
> > geo\_point and I use it in my queries. Of course, I use the results to  
> > display it on Google Map 🙂
> > 
> > On Thursday, September 20, 2012 1:10:44 PM UTC-4, Aaron Rosenthal wrote:
> > 
> > > We are building a new index and are looking to use elasticsearch. We  
> > > have a few questions about design patterns.
> > > 
> > > 1. Can we replace score with our own scoring data.
> > > 
> > > 2. What is the best method to shard our data. Our users will be set to  
> > > search data by county and we have zip codes for each of our documents.
> > > 
> > > Thanks for any help. We would also like to find someone to help consult  
> > > with us to get our schema and nodes setup in an optimal manner.
> > > 
> > > Aaron

--

---

<div class="post-metadata">

**Author:** ![Aaron\_Rosenthal](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@Aaron\_Rosenthal](https://discuss.elastic.co/u/Aaron_Rosenthal)\
**Post date:** [September 20, 2012, 8:06pm UTC](https://discuss.elastic.co/t/newbie-questions-score-geo-sharding/9077/5 "2012-09-20T20:06:12Z")

</div>

Thanks!

On Thursday, September 20, 2012 12:52:44 PM UTC-7, What-Else wrote:

> Totally forgot, you can use the custom\_query\_score[http://www.elasticsearch.org/guide/reference/query-dsl/custom-score-query.html](http://www.elasticsearch.org/guide/reference/query-dsl/custom-score-query.html) !  
> The best option for you i think 🙂
> 
> On Thursday, September 20, 2012 3:44:31 PM UTC-4, Aaron Rosenthal wrote:
> 
> > Yea we have our own scoring algorithm, boost would not help. I guess we  
> > will look into disabling score and create our own field and sort. I will  
> > also look into geo\_point... thanks
> > 
> > On Thursday, September 20, 2012 10:38:00 AM UTC-7, What-Else wrote:
> > 
> > > What you mean when you say "own scoring data", if you want custom the  
> > > score, you can use the \_boost field. If you don't care about the real score  
> > > so add a field and put a sort when you do a query.
> > > 
> > > About the geo query, I don't know if I full understand the question but  
> > > for myself, I use the Google Map Service Geocoding to translate address in  
> > > geo\_point and I use it in my queries. Of course, I use the results to  
> > > display it on Google Map 🙂
> > > 
> > > On Thursday, September 20, 2012 1:10:44 PM UTC-4, Aaron Rosenthal wrote:
> > > 
> > > > We are building a new index and are looking to use elasticsearch. We  
> > > > have a few questions about design patterns.
> > > > 
> > > > 1. Can we replace score with our own scoring data.
> > > > 
> > > > 2. What is the best method to shard our data. Our users will be set to  
> > > > search data by county and we have zip codes for each of our documents.
> > > > 
> > > > Thanks for any help. We would also like to find someone to help consult  
> > > > with us to get our schema and nodes setup in an optimal manner.
> > > > 
> > > > Aaron

--

---

<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 6, 2017, 3:12am UTC](https://discuss.elastic.co/t/newbie-questions-score-geo-sharding/9077/6 "2017-07-06T03:12:04Z")

</div>

Closed on July 6, 2017, 3:12am UTC


