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 Anderson vasconcelos <an...@gmail.com> on 2010/05/13 21:58:22 UTC
SolrUser - ERROR:SCHEMA-INDEX-MISMATCH
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
Re: SolrUser - ERROR:SCHEMA-INDEX-MISMATCH
Posted by Anderson vasconcelos <an...@gmail.com>.
Thanks for the helps.
The field is just for filter my data. They are: client_id, instance_id.
When i index my data, i put de identifier of client (Because my application
is a multiclient). When i search in solr, i wanna to find the docs where
client_id:1, as example.
Put the field as string, this works. When i see that i can put the field as
long, i think that's could be a best practice. But my trouble is i have many
docs indexeds.
How to change to long now is a bad idea, i will mantain the field in string
type. (Correct me if i am wrong)
Thanks
2010/5/13 Erick Erickson <er...@gmail.com>
> 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 <er...@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
> > > >
> > >
> >
>
Re: SolrUser - ERROR:SCHEMA-INDEX-MISMATCH
Posted by Erick Erickson <er...@gmail.com>.
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 <er...@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
> > >
> >
>
Re: SolrUser - ERROR:SCHEMA-INDEX-MISMATCH
Posted by Anderson vasconcelos <an...@gmail.com>.
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 <er...@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
> >
>
Re: SolrUser - ERROR:SCHEMA-INDEX-MISMATCH
Posted by Erick Erickson <er...@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
>