lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Newburn <jnewb...@zappos.com>
Subject Re: Solr schema causing an error
Date Fri, 23 Jan 2009 19:09:54 GMT
The first 10-15 lines of the jargon might help.  Additionally, the full
exceptions will be in the webserver logs (ie tomcat or jetty logs).


On 1/23/09 10:40 AM, "Johnny X" <jonathanwelton@gmail.com> wrote:

> 
> Ah, gotcha.
> 
> Where do I go to find the log messages? Obviously it prints a lot of jargon
> on the admin page reporting the error, but is that what you want?
> 
> 
> 
> Jeff Newburn wrote:
>> 
>> Are there any error log messages?
>> 
>> The difference between a string and text is that string is basically
>> stored
>> with no modification (it is the solr.StrField).  The text type is actually
>> defined in the fieldtype section and usually contains a tokenizer and some
>> analyzers (usually stemming, lowercasing, deduping).
>> 
>> 
>> On 1/23/09 9:52 AM, "Johnny X" <jonathanwelton@gmail.com> wrote:
>> 
>>> 
>>> Hi there,
>>> 
>>> 
>>> I just configured my Solr schema file to support the data types I wish to
>>> submit for indexing. However, as soon as try and start the Solr server I
>>> get
>>> an error trying to reach the admin page.
>>> 
>>> I know this only has something to do with my definitions in the schema,
>>> because when I tried to revert back to the default schema it worked
>>> again.
>>> 
>>> In my new schema I took out only the example definitions I was told to
>>> and
>>> input the below. Can someone tell me what's wrong?
>>> 
>>>    <field name="Message-ID" type="string" indexed="false" stored="true"/>
>>>    <field name="Date" type="string" indexed="false" stored="true"/>
>>>    <field name="From" type="string" indexed="false" stored="true"/>
>>>    <field name="To" type="string" indexed="false" stored="true"/>
>>>    <field name="Subject" type="string" indexed="false" stored="true"/>
>>>    <field name="Mime-Version" type="string" indexed="false"
>>> stored="true"/>
>>>    <field name="Content-Type" type="string" indexed="false"
>>> stored="true"/>
>>>    <field name="Content-Transfer-Encoding" type="string" indexed="false"
>>> stored="true"/>
>>>    <field name="X-From" type="string" indexed="false" stored="true"/>
>>>    <field name="X-To" type="string" indexed="false" stored="true"/>
>>>    <field name="X-cc" type="string" indexed="false" stored="true"/>
>>>    <field name="X-bcc" type="string" indexed="false" stored="true"/>
>>>    <field name="X-Folder" type="string" indexed="false" stored="true"/>
>>>    <field name="X-Origin" type="string" indexed="false" stored="true"/>
>>>    <field name="X-FileName" type="string" indexed="false" stored="true"/>
>>>    <field name="Content" type="string" indexed="true" stored="true"/>
>>> 
>>> 
>>> Also, what's the difference between text/string (I tried with both). And
>>> am
>>> I right in thinking that I could set the type to "StrField" to prevent
>>> any
>>> analysis pre-index?
>>> 
>>> 
>>> Cheers for the help!
>>> 
>> 
>> 
>> 


Mime
View raw message