From 6368e03ef85cfc2e3d2e88e331b6bb36c9bcb2b1 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 23 Aug 2012 15:31:07 +0000 Subject: [PATCH] LUCENE-3309: add CHANGES/MIGRATE git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1376548 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/CHANGES.txt | 4 ++++ lucene/MIGRATE.txt | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index 9e2562c2acd..f5357c682b4 100644 --- a/lucene/CHANGES.txt +++ b/lucene/CHANGES.txt @@ -69,6 +69,10 @@ API Changes inner Reader is 'input' like CharFilter in the 3.x series, instead of 'in'. (Dawid Weiss, Uwe Schindler, Robert Muir) +* LUCENE-3309: The expert FieldSelector API, used to load only certain + fields in a stored document, has been replaced with the simpler + StoredFieldVisitor API. (Mike McCandless) + Bug Fixes * LUCENE-4297: BooleanScorer2 would multiply the coord() factor diff --git a/lucene/MIGRATE.txt b/lucene/MIGRATE.txt index 68a9b96b703..352bb71ddd3 100644 --- a/lucene/MIGRATE.txt +++ b/lucene/MIGRATE.txt @@ -619,3 +619,10 @@ you can now do this: postings in simple arrrays (byte[] for terms, int[] for docs, freqs, positions, offsets). Note that this only covers postings, whereas Instantiated covered all other parts of the index as well. + +* LUCENE-3309: The expert FieldSelector API has been replaced with + StoredFieldVisitor. The idea is the same (you have full control + over which fields should be loaded). Instead of a single accept + method, StoredFieldVisitor has a needsField method: if that method + returns true then the field will be loaded and the appropriate + type-specific method will be invoked with that fields's value.