lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: SolrUser - ERROR:SCHEMA-INDEX-MISMATCH
Date Thu, 13 May 2010 23:32:32 GMT
This is probably a bad idea. You're getting by on backwards
compatibility stuff, I'd really recommend that you reindex your
entire corpus, possibly getting by on what you already have
until you can successfully reindex.

Have a look at trie fields (this is detailed in the example
schema.xml). Here's another place to look:
http://www.lucidimagination.com/blog/2009/05/13/exploring-lucene-and-solrs-trierange-capabilities/

You also haven't told us what you want to do with
the field, so making recommendations is difficult.

Best
Erick

On Thu, May 13, 2010 at 5:19 PM, Anderson vasconcelos <
anderson.vass@gmail.com> wrote:

> Hi Erick.
> I put in my schema.xml fields with type string. The system go to te
> production, and now i see that the field must be a long field.
>
> When i change the fieldtype to long, show the error
> ERROR:SCHEMA-INDEX-MISMATCH when i search by solr admin.
>
> I Put "plong", and this works. This is the way that i must go on? (This
> could generate a trouble in the future?)
>
> What's the advantages to set the field type to long? I must mantain this
> field in string type?
>
> Thanks
>
> 2010/5/13 Erick Erickson <erickerickson@gmail.com>
>
> > Not at present, you must re-index your documents when you redefine your
> > schema
> > to change existing documents.
> >
> > Field updating of documents already indexed is being worked on, but it's
> > not
> > available yet.
> >
> > Best
> > Erick
> >
> > On Thu, May 13, 2010 at 3:58 PM, Anderson vasconcelos <
> > anderson.vass@gmail.com> wrote:
> >
> > > Hi All.
> > >
> > > I have the follow fields in my schema:
> > > <field name="uuid_field" type="uuid" indexed="true" stored="true"
> > > default="NEW"/>
> > > <field name="entity_instance_id" type="plong" indexed="true"
> > stored="true"
> > > required="true"/>
> > > <field name="child_instance_id" type="plong" indexed="true"
> stored="true"
> > > required="true"/>
> > > <field name="client_id" type="plong" indexed="true" stored="true"
> > > required="true"/>
> > > <field name="indexing_date" type="date" default="NOW"
> multiValued="false"
> > > indexed="true" stored="true"/>
> > > <field name="field_name" type="textgen" indexed="true" stored="true"
> > > required="false"/>
> > > <field name="value" type="textgen" indexed="true" stored="false"
> > > required="false"/>
> > >
> > > I need to change the index of SOLR, adding a dynamic field that will
> > > contains all values of "value" field. Its possible to get all index
> data
> > > and
> > > reindex, putting the values on my dynamic field?
> > >
> > > How the data was no stored, i don't find one way to do this
> > >
> > > Thanks
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message