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 Király Péter <pk...@tesuji.eu> on 2009/10/28 10:54:13 UTC

ERROR:SCHEMA-INDEX-MISMATCH

Hi all,

I just try to migrate from solr-2009-09-09.zip to today's nightly build.
I found that the *_i dynamic field's type remained int but its definition
became     
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>

the older Solr schema lacks the definition of int, so I suppose, that its class is
solr.IntField. I modified the schema in two points:

  <fieldType name="integer" class="solr.IntField" omitNorms="true"/>
  <dynamicField name="*_i"  type="integer"    indexed="true"  stored="true"/>

The result becames that the search result list contains such elements:
<str name="node_id_i">ERROR:SCHEMA-INDEX-MISMATCH,stringValue=€G?</str>

Another strange thing, that
http://localhost:8983/solr/select?q=london&version=1.2
works well (with this error), but if I put &wt=json I received

HTTP ERROR: 400 
undefined field type

Do you have any idea?

Péter

Re: ERROR:SCHEMA-INDEX-MISMATCH

Posted by Király Péter <pk...@tesuji.eu>.
From: "Yonik Seeley" <yo...@lucidimagination.com>
To: <so...@lucene.apache.org>
Sent: Wednesday, October 28, 2009 2:11 PM
Subject: Re: ERROR:SCHEMA-INDEX-MISMATCH


> I imagine that your field impl was SortableIntField, not IntField, but
> checking your old schema will tell you for sure.

Yes, you are right, I double checked it.

Thanks!

Peter

Re: solrjs

Posted by James McKinney <ja...@evolvingweb.ca>.
The documentation has been massively expanded, and a demo site has been
created:

Demo: http://evolvingweb.github.com/ajax-solr/examples/reuters/index.html
Docs: http://evolvingweb.github.com/ajax-solr/

Although it took a while, the documentation is more thorough than SolrJS's
had been.

James


AE-4 wrote:
> 
> I fully understand it was not working probably in production or on other
> data sets. But it did serve a purpose for me.. i.e. show a demo to anyone
> out of my box.. and I update my local repo with trunk all the time..
> 
> I could do ant reuters-start using my laptop and it would work.. my point
> is remove it when you have something to replace it with.. active
> development won't help my demo to customers.. and will not promote solr to
> larger audience..
> 
> well whats done is done. i will revert to older repo revision.
> 
> thanks
> 
> --- Den ons 2009-10-28 skrev Colin Hynes <co...@activema.com>:
> 
>> Från: Colin Hynes <co...@activema.com>
>> Ämne: Re: solrjs
>> Till: solr-user@lucene.apache.org
>> Datum: onsdag 28 oktober 2009 15.18
>> 
>> Actually, it wasn't quite working. It also replicated a lot
>> of stuff that's in ajax solr, which is being more actively
>> developed. Hence the removal.
>> 
>> 
>> On Oct 28, 2009, at 10:16 AM, Antonio Eggberg wrote:
>> 
>> > I am all for new stuff.
>> > 
>> > It would be nice to see a working example of ajax-solr
>> before killing completely solrjs from trunk... at least it
>> was working .. ajax-solr has no how to, nor any working
>> example..
>> > 
>> > http://github.com/evolvingweb/ajax-solr
>> > 
>> > Well why not just remove the javascript folder too and
>> just have one liner mention in CHANGES.txt??...
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> >     
>> __________________________________________________________
>> > Låna pengar utan säkerhet. Jämför vilkor online
>> hos Kelkoo.
>> >
>> http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014
>> > 
>> 
>> Active Media Architects, Inc.
>> World Class Design, Programming & Strategy - Since
>> 1998
>> http://www.activema.com
>> 
>> 1-888-392-4567 toll free
>> 1-586-445-1000 local
>> 1-586-445-2247 fax
>> 
>> 
> 
> 
>       ___________________________________________________
> Sök efter kärleken!
> Hitta din tvillingsjäl på Yahoo! Dejting:
> http://ad.doubleclick.net/clk;185753627;24584539;x?http://se.meetic.yahoo.net/index.php?mtcmk=148783
> 
> 

-- 
View this message in context: http://old.nabble.com/ERROR%3ASCHEMA-INDEX-MISMATCH-tp26091970p26763917.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: solrjs

Posted by Colin Hynes <co...@activema.com>.
Out of curiosity... Why not just make/find a quick example using ajax- 
solr and use git to update from them?

On Oct 28, 2009, at 10:29 AM, Antonio Eggberg wrote:

> I fully understand it was not working probably in production or on  
> other data sets. But it did serve a purpose for me.. i.e. show a  
> demo to anyone out of my box.. and I update my local repo with trunk  
> all the time..
>
> I could do ant reuters-start using my laptop and it would work.. my  
> point is remove it when you have something to replace it with..  
> active development won't help my demo to customers.. and will not  
> promote solr to larger audience..
>
> well whats done is done. i will revert to older repo revision.
>
> thanks
>
> --- Den ons 2009-10-28 skrev Colin Hynes <co...@activema.com>:
>
>> Från: Colin Hynes <co...@activema.com>
>> Ämne: Re: solrjs
>> Till: solr-user@lucene.apache.org
>> Datum: onsdag 28 oktober 2009 15.18
>>
>> Actually, it wasn't quite working. It also replicated a lot
>> of stuff that's in ajax solr, which is being more actively
>> developed. Hence the removal.
>>
>>
>> On Oct 28, 2009, at 10:16 AM, Antonio Eggberg wrote:
>>
>>> I am all for new stuff.
>>>
>>> It would be nice to see a working example of ajax-solr
>> before killing completely solrjs from trunk... at least it
>> was working .. ajax-solr has no how to, nor any working
>> example..
>>>
>>> http://github.com/evolvingweb/ajax-solr
>>>
>>> Well why not just remove the javascript folder too and
>> just have one liner mention in CHANGES.txt??...
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>> __________________________________________________________
>>> Låna pengar utan säkerhet. Jämför vilkor online
>> hos Kelkoo.
>>> http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014
>>>
>>
>> Active Media Architects, Inc.
>> World Class Design, Programming & Strategy - Since
>> 1998
>> http://www.activema.com
>>
>> 1-888-392-4567 toll free
>> 1-586-445-1000 local
>> 1-586-445-2247 fax
>>
>>
>
>
>      ___________________________________________________
> Sök efter kärleken!
> Hitta din tvillingsjäl på Yahoo! Dejting: http://ad.doubleclick.net/clk;185753627;24584539;x?http://se.meetic.yahoo.net/index.php 
> ?mtcmk=148783
>

Active Media Architects, Inc.
World Class Design, Programming & Strategy - Since 1998
http://www.activema.com

1-888-392-4567 toll free
1-586-445-1000 local
1-586-445-2247 fax


Re: solrjs

Posted by Antonio Eggberg <an...@yahoo.se>.
I fully understand it was not working probably in production or on other data sets. But it did serve a purpose for me.. i.e. show a demo to anyone out of my box.. and I update my local repo with trunk all the time..

I could do ant reuters-start using my laptop and it would work.. my point is remove it when you have something to replace it with.. active development won't help my demo to customers.. and will not promote solr to larger audience..

well whats done is done. i will revert to older repo revision.

thanks

--- Den ons 2009-10-28 skrev Colin Hynes <co...@activema.com>:

> Från: Colin Hynes <co...@activema.com>
> Ämne: Re: solrjs
> Till: solr-user@lucene.apache.org
> Datum: onsdag 28 oktober 2009 15.18
> 
> Actually, it wasn't quite working. It also replicated a lot
> of stuff that's in ajax solr, which is being more actively
> developed. Hence the removal.
> 
> 
> On Oct 28, 2009, at 10:16 AM, Antonio Eggberg wrote:
> 
> > I am all for new stuff.
> > 
> > It would be nice to see a working example of ajax-solr
> before killing completely solrjs from trunk... at least it
> was working .. ajax-solr has no how to, nor any working
> example..
> > 
> > http://github.com/evolvingweb/ajax-solr
> > 
> > Well why not just remove the javascript folder too and
> just have one liner mention in CHANGES.txt??...
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >     
> __________________________________________________________
> > Låna pengar utan säkerhet. Jämför vilkor online
> hos Kelkoo.
> > http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014
> > 
> 
> Active Media Architects, Inc.
> World Class Design, Programming & Strategy - Since
> 1998
> http://www.activema.com
> 
> 1-888-392-4567 toll free
> 1-586-445-1000 local
> 1-586-445-2247 fax
> 
> 


      ___________________________________________________
Sök efter kärleken!
Hitta din tvillingsjäl på Yahoo! Dejting: http://ad.doubleclick.net/clk;185753627;24584539;x?http://se.meetic.yahoo.net/index.php?mtcmk=148783

Re: solrjs

Posted by Colin Hynes <co...@activema.com>.
Actually, it wasn't quite working. It also replicated a lot of stuff  
that's in ajax solr, which is being more actively developed. Hence the  
removal.


On Oct 28, 2009, at 10:16 AM, Antonio Eggberg wrote:

> I am all for new stuff.
>
> It would be nice to see a working example of ajax-solr before  
> killing completely solrjs from trunk... at least it was working ..  
> ajax-solr has no how to, nor any working example..
>
> http://github.com/evolvingweb/ajax-solr
>
> Well why not just remove the javascript folder too and just have one  
> liner mention in CHANGES.txt??...
>
>
>
>
>
>
>
>      __________________________________________________________
> Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo.
> http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014
>

Active Media Architects, Inc.
World Class Design, Programming & Strategy - Since 1998
http://www.activema.com

1-888-392-4567 toll free
1-586-445-1000 local
1-586-445-2247 fax


solrjs

Posted by Antonio Eggberg <an...@yahoo.se>.
I am all for new stuff. 

It would be nice to see a working example of ajax-solr before killing completely solrjs from trunk... at least it was working .. ajax-solr has no how to, nor any working example.. 

http://github.com/evolvingweb/ajax-solr

Well why not just remove the javascript folder too and just have one liner mention in CHANGES.txt??...







      __________________________________________________________
Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo.
http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014

Re: ERROR:SCHEMA-INDEX-MISMATCH

Posted by Yonik Seeley <yo...@lucidimagination.com>.
2009/10/28 Király Péter <pk...@tesuji.eu>:
> I just try to migrate from solr-2009-09-09.zip to today's nightly build.
> I found that the *_i dynamic field's type remained int but its definition
> became
> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
>
> the older Solr schema lacks the definition of int, so I suppose, that its class is
> solr.IntField. I modified the schema in two points:
>
>  <fieldType name="integer" class="solr.IntField" omitNorms="true"/>
>  <dynamicField name="*_i"  type="integer"    indexed="true"  stored="true"/>

Normally, the only schema changes you can make without reindexing are
those that are "compatible" with the query analyzers.  Reindexing is
your best bet.. or changing the schema to match exactly what you had
in your old schema.

I imagine that your field impl was SortableIntField, not IntField, but
checking your old schema will tell you for sure.

-Yonik
http://www.lucidimagination.com


> The result becames that the search result list contains such elements:
> <str name="node_id_i">ERROR:SCHEMA-INDEX-MISMATCH,stringValue= G?</str>
>
> Another strange thing, that
> http://localhost:8983/solr/select?q=london&version=1.2
> works well (with this error), but if I put &wt=json I received
>
> HTTP ERROR: 400
> undefined field type
>
> Do you have any idea?
>
> Péter