that seems to work. thanks for that. it was a bit fiddly more than i expected but got the index sorted.
found an issue with sorting as most fields cannot be sorted by; and throwing a java.lang.RuntimeException: Unknown sort value type! at org.apache.nutch.searcher.IndexSearcher.translateHits(IndexSearcher.java:159) at org.apache.nutch.searcher.IndexSearcher.search(IndexSearcher.java:98) at org.apache.nutch.searcher.LuceneSearchBean.search(LuceneSearchBean.java:84) at org.apache.nutch.searcher.NutchBean.search(NutchBean.java:231) On Mon, 2009-11-09 at 17:34 +0100, Andrzej Bialecki wrote: > fa...@butterflycluster.net wrote: > > hi all, > > > > i have an existing index - we have a custom field that needs to be added > > or changed in every currently indexed document ; > > > > whats the best way to go about this without recreating the index again? > > There are ways to do it directly on the index, but this is complicated > and involves hacking the low-level Lucene format. Alternatively, you > could build a parallel index with just these fields, but synchronized > internal docId-s, open both indexes with ParallelReader, and then create > a new index using IndexWriter.addIndexes(). > > I suggest recreating the index. >