@@ -763,7 +763,7 @@ public void testNotLazyField() throws IOException {
763
763
core .execute (core .getRequestHandler (req .getParams ().get (CommonParams .QT )), req , rsp );
764
764
765
765
DocList dl = ((ResultContext ) rsp .getResponse ()).getDocList ();
766
- Document d = req .getSearcher ().storedFields ().document (dl .iterator ().nextDoc ());
766
+ Document d = req .getSearcher ().getDocFetcher ().doc (dl .iterator ().nextDoc ());
767
767
// ensure field in fl is not lazy
768
768
assertNotEquals ("LazyField" , ((Field ) d .getField ("test_hlt" )).getClass ().getSimpleName ());
769
769
assertNotEquals ("LazyField" , ((Field ) d .getField ("title" )).getClass ().getSimpleName ());
@@ -791,7 +791,7 @@ public void testLazyField() throws IOException {
791
791
792
792
DocList dl = ((ResultContext ) rsp .getResponse ()).getDocList ();
793
793
DocIterator di = dl .iterator ();
794
- Document d1 = req .getSearcher ().storedFields ().document (di .nextDoc ());
794
+ Document d1 = req .getSearcher ().getDocFetcher ().doc (di .nextDoc ());
795
795
IndexableField [] values1 = null ;
796
796
797
797
// ensure fl field is non lazy, and non-fl field is lazy
@@ -813,7 +813,7 @@ public void testLazyField() throws IOException {
813
813
814
814
dl = ((ResultContext ) rsp .getResponse ()).getDocList ();
815
815
di = dl .iterator ();
816
- Document d2 = req .getSearcher ().storedFields ().document (di .nextDoc ());
816
+ Document d2 = req .getSearcher ().getDocFetcher ().doc (di .nextDoc ());
817
817
// ensure same doc, same lazy field now
818
818
assertSame ("Doc was not cached" , d1 , d2 );
819
819
IndexableField [] values2 = d2 .getFields ("test_hlt" );
0 commit comments