You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "kunhu0404@gmail.com" <ku...@gmail.com> on 2018/08/31 15:54:21 UTC

Unknown field "cache"

Hello Team,

Need suggestions on Solr Indexing. We are using Solr-6.6.3 and Nutch 1.14. 

I see unknown field 'cache' error while indexing the data to Solr so i added
below entry in field section of schema.xml forsolr

<field name="cache" type="string" stored="true" indexed="false"/>

Tried indexing the data again and this time error is unknown field 'date'.
However i have the <field name =date entry in schema.xml already.

Please suggest




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Unknown field "cache"

Posted by Erick Erickson <er...@gmail.com>.
Which are you using? schema.xml of managed-schema? You must be using
one or the other, but not both.

It's likely you're using managed-schema, that's where changes need to be made.

Best,
Erick
On Sun, Sep 2, 2018 at 11:55 AM Bineesh <ku...@gmail.com> wrote:
>
> Hi Govind,
>
> Thanks for the reply. Pleasee below the chema.xml and managed.schema
>
> 1: schema.xml
>
>
>     <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"
> precisionStep="6" positionIncrementGap="0"/>
>      <fieldType name="tdates" class="solr.TrieDateField" docValues="true"
> precisionStep="6" positionIncrementGap="0" multiValued="true"/>
>          int, float, long, date, double, including the "Trie" variants.
>     <field name="tstamp" type="date" stored="true" indexed="false"/>
>     <field name="lastModified" type="date" stored="true" indexed="false"/>
>     <field name="date" type="tdate" stored="true" indexed="true"/>
>     <field name="publishedDate" type="date" stored="true" indexed="true"/>
>     <field name="updatedDate" type="date" stored="true" indexed="true"/>
>
> 2 : managed.schema
>
>  - For maximum indexing performance, use the ConcurrentUpdateSolrServer
>          "add-unknown-fields-to-the-schema" update request processor chain
> declared
>     <dynamicField name="*_dt"  type="date"    indexed="true"
> stored="true"/>
>     <dynamicField name="*_dts" type="date"    indexed="true"  stored="true"
> multiValued="true"/>
>     <dynamicField name="*_pdt" type="pdate"  indexed="true"  stored="true"/>
>     <dynamicField name="*_pdts" type="pdates"  indexed="true"
> stored="true"/>
>     <dynamicField name="*_tdt" type="tdate"  indexed="true"  stored="true"/>
>     <dynamicField name="*_tdts" type="tdates"  indexed="true"
> stored="true"/>
>              This includes "string","boolean", "int", "float", "long",
> "date", "double",
>
>     <fieldType name="pdate" class="solr.DatePointField" docValues="true"/>
>     <fieldType name="pdates" class="solr.DatePointField" docValues="true"
> multiValued="true"/>
>     <fieldType name="date" class="solr.TrieDateField" docValues="true"
> precisionStep="0" positionIncrementGap="0"/>
>     <fieldType name="dates" class="solr.TrieDateField" docValues="true"
> precisionStep="0" positionIncrementGap="0" multiValued="true"/>
>     <fieldType name="tdate" class="solr.TrieDateField" docValues="true"
> precisionStep="6" positionIncrementGap="0"/>
>     <fieldType name="tdates" class="solr.TrieDateField" docValues="true"
> precisionStep="6" positionIncrementGap="0" multiValued="true"/>
>
> please let me know if i'm missing anything
>
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Unknown field "cache"

Posted by Bineesh <ku...@gmail.com>.
Hi Govind,

Thanks for the reply. Pleasee below the chema.xml and managed.schema

1: schema.xml

 
    <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true"
precisionStep="6" positionIncrementGap="0"/>
     <fieldType name="tdates" class="solr.TrieDateField" docValues="true"
precisionStep="6" positionIncrementGap="0" multiValued="true"/>
         int, float, long, date, double, including the "Trie" variants.
    <field name="tstamp" type="date" stored="true" indexed="false"/>
    <field name="lastModified" type="date" stored="true" indexed="false"/>
    <field name="date" type="tdate" stored="true" indexed="true"/>
    <field name="publishedDate" type="date" stored="true" indexed="true"/>
    <field name="updatedDate" type="date" stored="true" indexed="true"/>

2 : managed.schema

 - For maximum indexing performance, use the ConcurrentUpdateSolrServer
         "add-unknown-fields-to-the-schema" update request processor chain
declared
    <dynamicField name="*_dt"  type="date"    indexed="true" 
stored="true"/>
    <dynamicField name="*_dts" type="date"    indexed="true"  stored="true"
multiValued="true"/>
    <dynamicField name="*_pdt" type="pdate"  indexed="true"  stored="true"/>
    <dynamicField name="*_pdts" type="pdates"  indexed="true" 
stored="true"/>
    <dynamicField name="*_tdt" type="tdate"  indexed="true"  stored="true"/>
    <dynamicField name="*_tdts" type="tdates"  indexed="true" 
stored="true"/>
             This includes "string","boolean", "int", "float", "long",
"date", "double",
    
    <fieldType name="pdate" class="solr.DatePointField" docValues="true"/>
    <fieldType name="pdates" class="solr.DatePointField" docValues="true"
multiValued="true"/>
    <fieldType name="date" class="solr.TrieDateField" docValues="true"
precisionStep="0" positionIncrementGap="0"/>
    <fieldType name="dates" class="solr.TrieDateField" docValues="true"
precisionStep="0" positionIncrementGap="0" multiValued="true"/>
    <fieldType name="tdate" class="solr.TrieDateField" docValues="true"
precisionStep="6" positionIncrementGap="0"/>
    <fieldType name="tdates" class="solr.TrieDateField" docValues="true"
precisionStep="6" positionIncrementGap="0" multiValued="true"/>

please let me know if i'm missing anything




--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Unknown field "cache"

Posted by govind nitk <go...@gmail.com>.
Please metion the schema definition of date.
If you edit solr schema manually, you need to reload the solr core.



On Sat, Sep 1, 2018 at 3:38 AM kunhu0404@gmail.com <ku...@gmail.com>
wrote:

> Hello Team,
>
> Need suggestions on Solr Indexing. We are using Solr-6.6.3 and Nutch 1.14.
>
> I see unknown field 'cache' error while indexing the data to Solr so i
> added
> below entry in field section of schema.xml forsolr
>
> <field name="cache" type="string" stored="true" indexed="false"/>
>
> Tried indexing the data again and this time error is unknown field 'date'.
> However i have the <field name =date entry in schema.xml already.
>
> Please suggest
>
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>