Did you shut down and restart or “reload” Solr? A core restart/reload is needed 
for Solr to “see” schema changes.

See:
http://wiki.apache.org/solr/CoreAdmin#RELOAD 

or, if you did try a reload, maybe there were errors which prevented Solr from 
starting the new core initialization, which leaves the old instance with the 
old schema still running.

-- Jack Krupansky

From: dominique schoonbrood 
Sent: Friday, May 11, 2012 11:22 AM
To: solr-user@lucene.apache.org 
Subject: question about updating SOLR fieldset

Hi there

I have a question about updating the fieldset i can work with. 
The first version has been made by an ex-employee of our company.

These are the current fields in my php file:
$fields = array('size', 'pubdate', 'type', 'section', 'translation', 'groups');

I've managed to put an extra field into the right schema.xml file.


However, if i try to work with the new field 'taal' and then try to save/commit 
it while indexing, it says it cannot find this new field
$idoc->addField('type', 'pdf');
$idoc->addField('section', 'files');
$idoc->addField('taal','nl'); 



Also, my new field doesn't show up in this list:



What should be my next step after changing the schema.xml? The core method for 
doing it dynamically is not installed, and i have no idea how to, but based on 
the current field set, my predecessor did it without the core method.
I guess i just don't know which commands i should use to re-index it.

Thanks in advance

Dominique


-- 
      Met vriendelijke groeten,

      Dominique Schoonbrood
      developer - Sanmax
     
          
        Weg naar Zwartberg 18 | 3660 Opglabbeek
      T. 070 250 236 | F. 089 856 929 | www.sanmax.be
     

Reply via email to