Jason,

That sounds pretty simple and works well if you plan on allowing 
fielded/structured search.
If not, you could alternatively stick all geo values in a single text field and 
avoid dealing with multiple fields.

You may also want to use ngram fields instead of text if you want to still 
match that San Fransisco oops typo.

Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/


----- Original Message -----
> From: Jason Toy <jason...@gmail.com>
> To: solr-user@lucene.apache.org
> Cc: 
> Sent: Thursday, October 6, 2011 11:27 AM
> Subject: what is the recommended way to store locations?
> 
> In our current system ,we have 3 fields for location,  city, state, and
> country.    People in our system search for one of those 3 strings.
> So a user can search for "San Francisco" or "California".  
> In solr I store
> those 3 fields as strings and when a search happens I search with an OR
> statement across those 3 fields.
> 
> Is there a more efficient way to store this data storage wise and/or speed
> wise?  We don't currently plan to use any spacial features like "3 
> miles
> near SF".
>

Reply via email to