public Explanation explain(int index) throws IOException { final Explanation explanation = searcher.explain( filters, docId( index ) ); timeoutManager.isTimedOut(); return explanation; }
/** * 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 ); }
@Override public HSQuery sort(Sort sort) { clearCachedResults(); this.sort = sort; return this; }
@Override public FacetManagerImpl getFacetManager() { if ( facetManager == null ) { facetManager = new FacetManagerImpl( this ); } return facetManager; }
/** * Required by Infinispan Query. */ @Override public TopDocs getTopDocs() { return queryHits.getTopDocs(); }
private void closeSearcher(LazyQueryState searcherWithPayload) { if ( searcherWithPayload == null ) { return; } searcherWithPayload.close(); }
@Override public TimeoutManagerImpl getTimeoutManager() { if ( timeoutManager == null ) { timeoutManager = buildTimeoutManager(); } return timeoutManager; }
@Override public HSQuery luceneQuery(Query query) { clearCachedResults(); this.luceneQuery = query; return this; }
@Override public Status needsField(FieldInfo fieldInfo) throws IOException { if ( missingFields == 0 ) { // An aggressive STOP could prevent unnecessary I/O ! return Status.STOP; } final Status s = rootAcceptor.acceptField( fieldInfo.name ); if ( s == Status.YES ) { missingFields--; } return s; }
public Explanation explain(int index) throws IOException { final Explanation explanation = searcher.explain( filters, docId( index ) ); timeoutManager.isTimedOut(); return explanation; }
@Override public FacetManagerImpl getFacetManager() { if ( facetManager == null ) { facetManager = new FacetManagerImpl( this ); } return facetManager; }
/** * 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 ); }
void queryHasChanged() { facetFilterset = null; this.facetResults = null; query.clearCachedResults(); }
/** * Required by Infinispan Query. */ @Override public TopDocs getTopDocs() { return queryHits.getTopDocs(); }
private void closeSearcher(LazyQueryState searcherWithPayload) { if ( searcherWithPayload == null ) { return; } searcherWithPayload.close(); }
@Override public TimeoutManagerImpl getTimeoutManager() { if ( timeoutManager == null ) { timeoutManager = buildTimeoutManager(); } return timeoutManager; }
@Override public FacetManagerImpl getFacetManager() { if ( facetManager == null ) { facetManager = new FacetManagerImpl( this ); } return facetManager; }
void queryHasChanged() { facetFilterset = null; this.facetResults = null; query.clearCachedResults(); }
@Override public FacetManagerImpl getFacetManager() { if ( facetManager == null ) { facetManager = new FacetManagerImpl( this ); } return facetManager; }