LUCENE-4663: IndexSearcher.document should not be final

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1429927 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-01-07 18:03:54 +00:00
parent b56b6c1f71
commit 2d1c5560d5
3 changed files with 6 additions and 1 deletions

View File

@ -206,6 +206,10 @@ API Changes
create your fst with finish(), and then call pack() to get another FST.
Instead just pass true for doPackFST to Builder and finish() returns a packed FST.
(Robert Muir)
* LUCENE-4663: Deprecate IndexSearcher.document(int, Set). This was not intended
to be final, nor named document(). Use IndexSearcher.doc(int, Set) instead.
(Robert Muir)
Bug Fixes

View File

@ -201,7 +201,7 @@ public class IndexSearcher {
* Sugar for <code>.getIndexReader().document(docID, fieldsToLoad)</code>
* @see IndexReader#document(int, Set)
*/
public final StoredDocument document(int docID, Set<String> fieldsToLoad) throws IOException {
public StoredDocument doc(int docID, Set<String> fieldsToLoad) throws IOException {
return reader.document(docID, fieldsToLoad);
}

View File

@ -570,6 +570,7 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn
* filter is provided, only the provided fields will be loaded (the
* remainder will be available lazily).
*/
@Override
public StoredDocument doc(int i, Set<String> fields) throws IOException {
StoredDocument d;