/** * This document loading strategy doesn't return anything as it's the responsibility * of the passed StoredFieldVisitor instance to collect the data it needs. * * @param index {@link ScoreDoc} index * @param fieldVisitor accessor to the stored field value in the index * * @throws IOException if an error occurs accessing the index */ public void visitDocument(int index, StoredFieldVisitor fieldVisitor) throws IOException { searcher.doc( docId( index ), fieldVisitor ); }
public Double spatialDistance(int index) throws IOException { if ( spatialSearchCenter == null ) { return null; } return distanceCollector.getDistance( docId( index ) ); }
public Document doc(int index) throws IOException { return searcher.doc( docId( index ) ); }
public Double spatialDistance(int index) throws IOException { if ( spatialSearchCenter == null ) { return null; } return distanceCollector.getDistance( docId( index ) ); }
/** * This document loading strategy doesn't return anything as it's the responsibility * of the passed StoredFieldVisitor instance to collect the data it needs. * * @param index {@link ScoreDoc} index * @param fieldVisitor accessor to the stored field value in the index * * @throws IOException if an error occurs accessing the index */ public void visitDocument(int index, StoredFieldVisitor fieldVisitor) throws IOException { searcher.doc( docId( index ), fieldVisitor ); }
public Document doc(int index) throws IOException { return searcher.doc( docId( index ) ); }
public Explanation explain(int index) throws IOException { final Explanation explanation = searcher.explain( filters, docId( index ) ); timeoutManager.isTimedOut(); return explanation; }
public Explanation explain(int index) throws IOException { final Explanation explanation = searcher.explain( filters, docId( index ) ); timeoutManager.isTimedOut(); return explanation; }
@Override public EntityInfo extract(int scoreDocIndex) throws IOException { int docId = queryHits.docId( scoreDocIndex ); Document document = extractDocument( scoreDocIndex );
@Override public EntityInfo extract(int scoreDocIndex) throws IOException { int docId = queryHits.docId( scoreDocIndex ); Document document = extractDocument( scoreDocIndex );