We do much the same (along with name, address, postal code, etc.).

However, we use AND when we search: the more data someone can provide, the 
fewer and more applicable their search results.

JRJ

-----Original Message-----
From: Jason Toy [mailto:jason...@gmail.com] 
Sent: Thursday, October 06, 2011 10:28 AM
To: solr-user@lucene.apache.org
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