There is a lat/long type and geosearch queries for it. Did you plan to use that? See the solr/example schemas for use of geosearch.
On Wed, May 9, 2012 at 6:59 AM, Spadez <james_will...@hotmail.com> wrote: > Hi, > > I’m totally out of my depth here but I am trying, so I apologise if this is > a bit of a basic question. I need the following information to be indexed > and then made searchable by Solr: > > Title – A title for the company > Company – The name of the company > Description – A description of the company > Location – The text location of a company (e.g London) > Longitudinal – The numerical longitudinal reference for spatial searching > Latitudinal – The numerical latitudinal reference for spatial searching > Date – The date that the record was added > Source – The name of the site where this data was collected from > > From this, I made this very basic schema.xml: > > <uniqueKey>id</uniqueKey> > <defaultSearchField>title</defaultSearchField> > <solrQueryParser defaultOperator=“OR”/> > > <field name=“id” type=“string” indexed=“true” stored=“true”/> > <field name=“title” type=“text” indexed=“true” stored=“true”/> > <field name=“description” type=“text” indexed=“true” stored=“true”/> > <field name=“company” type=“text” indexed=“true” stored=“true”/> > <field name=“location_name” type=“text” indexed=“true” stored=“true”/> > <field name=“longitudinal” type=“string” indexed=“true” stored=“true”/> > <field name=“latidudinal” type=“string” indexed=“true” stored=“true”/> > <field name=“date” type=“date” indexed=“true” stored=“true”/> > <field name=“source” type=“text” indexed=“true” stored=“true”/> > > Would anyone please be kind enough to give me a bit of advice? Have I done > this right? > > Regards, > > James > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Newbie-Tries-to-make-a-Schema-xml-tp3974200.html > Sent from the Solr - User mailing list archive at Nabble.com. -- Lance Norskog goks...@gmail.com