You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Michael van Rooyen <mi...@loot.co.za> on 2013/08/26 18:43:37 UTC

Altering field info without building index from scratch

Hello.

We got the error:

java.lang.IllegalStateException: field "xxx" was indexed without 
position data; cannot run PhraseQuery

What I suspect is happening is that field xxx was first indexed as a 
StringField (untokenized), and subsequently changed to TextField 
(tokenized and analyzed).  Even though all the docs containing the field 
have been updated in the index, Lucene still sees this as a raw field.

Is there a way to change the meta data associated with a field without 
building the index from scratch?

Thanks,
Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org