And you will have to define a "text" field type, or use one of the existing
text field types, such as "text_general" in the example Solr schema.
-- Jack Krupansky
-----Original Message-----
From: Spadez
Sent: Wednesday, May 09, 2012 9:59 AM
To: solr-user@lucene.apache.org
Subject: Newbie Tries to make a Schema.xml
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.