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 Explanation explain(int documentId) { //don't use TimeoutManager here as explain is a dev tool when things are weird... or slow :) Explanation explanation = null; LazyQueryState searcher = buildSearcher( extendedIntegrator, true ); if ( searcher == null ) { throw new SearchException( "Unable to build explanation for document id:" + documentId + ". no index found" ); } try { QueryFilters filters = createFilters(); explanation = searcher.explain( filters, documentId ); } catch (IOException e) { throw new SearchException( "Unable to query Lucene index and build explanation", e ); } finally { closeSearcher( searcher ); } return explanation; }
@Override public Explanation explain(int documentId) { //don't use TimeoutManager here as explain is a dev tool when things are weird... or slow :) Explanation explanation = null; LazyQueryState searcher = buildSearcher( extendedIntegrator, true ); if ( searcher == null ) { throw new SearchException( "Unable to build explanation for document id:" + documentId + ". no index found" ); } try { QueryFilters filters = createFilters(); explanation = searcher.explain( filters, documentId ); } catch (IOException e) { throw new SearchException( "Unable to query Lucene index and build explanation", e ); } finally { closeSearcher( searcher ); } return explanation; }