Also, I'd love it to work similar to this...
http://ws.geonames.org/searchJSON?q=Miami%20FL&maxRows=10&callback=getLocation&noCacheIE=1331244227337
Except mine is just doing cities, only difference.
This returns:
1.) Miami
2.) Miami Beach
That is exactly how mine should return... if anyone could possibly help!
I'm pretty desperate now...
On Thursday, March 8, 2012 5:00:12 PM UTC-5, Joshua Rountree wrote:
I'm new to Elasticsearch...
First off, I love this so far (I think)....
The documentation confuses me.
So I've indexed some geonames data from a mysql table.
It has a field that contains things like:
"Miami FL Florida USA US United States"
Whatever...
So, for the most part with MOST CITIES it returns perfectly accurate
results.
But if I search "Miami FL" or "Miami Florida" I'm not getting MIAMI FL,
I'm getting Miami Gardens, FL, etc. Miami FL shows up like #10 in the
results.
So I thought to myself... I need to boost based on POPULATION somehow...
Is this possible?
I tried looking into "boosting" "boost_field" etc and simply do not
understand how to approach this.
Combining with the search term...
Ideally, the higher the population - the higher the relevance...?
Any clues?
On Thursday, March 8, 2012 5:00:12 PM UTC-5, Joshua Rountree wrote:
I'm new to Elasticsearch...
First off, I love this so far (I think)....
The documentation confuses me.
So I've indexed some geonames data from a mysql table.
It has a field that contains things like:
"Miami FL Florida USA US United States"
Whatever...
So, for the most part with MOST CITIES it returns perfectly accurate
results.
But if I search "Miami FL" or "Miami Florida" I'm not getting MIAMI FL,
I'm getting Miami Gardens, FL, etc. Miami FL shows up like #10 in the
results.
So I thought to myself... I need to boost based on POPULATION somehow...
Is this possible?
I tried looking into "boosting" "boost_field" etc and simply do not
understand how to approach this.
Combining with the search term...
Ideally, the higher the population - the higher the relevance...?
Any clues?