mirror of https://github.com/apache/lucene.git
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:
parent
b56b6c1f71
commit
2d1c5560d5
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue