: If you cannot do this for whatever reason, I vaguely remember someone
: posting a link to a program they'd put together to do this for a
: docValues field, you'd have to search the archives to find it.

It was Toke - he generated DocValues for an existing index by writing an 
IndexReader Filter that would "fake" the DocValues based on the value of a 
Stored field, and used that fake for a one time "copy" of the IndexReader 
into a new index (where the docValues were written "for real")...

https://sbdevel.wordpress.com/2014/12/15/changing-field-type-in-lucenesolr/
https://github.com/netarchivesuite/dvenabler

...if all you care about is generating *some* uniqueId field value for 
each doc, you could do the same thing fairly efficiently, skipping the 
stored field reading and just using a global counter.


-Hoss
http://www.lucidworks.com/

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

Reply via email to