I've made a test, based on your suggestion.

Using the example in 4.5.0 i set the title field as indexed=false, indexed a
couple of docs:
<add>
  <doc>
  <field name="id">1</field>
  <field name="title" update="set">BigApple</field>
</doc>
<doc>
  <field name="id">2</field>
  <field name="title" update="set">SmallApple</field>
</doc>
</add>

 and made fq=title:BigApple. No docs were returned, of course.

Then I modified the schema, setting indexed=true for the title field and
restarted solr.
Following that I posted a document update :
<add>
  <doc>
  <field name="id">1</field>
  <field name="title" update="set">BigApple</field>
</doc>
</add>

Afterwards i ranned the same query fq=title:BigApple and the document was
returned.

So at a first look an atomic update can do the trick. 
Unless I was doing something wrong.



-----
Thanks,
Michael
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Changing-indexed-property-on-a-field-from-false-to-true-tp4097213p4097233.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to