Class NexusIndexSearcher

java.lang.Object
org.apache.lucene.search.IndexSearcher
org.apache.maven.index.context.NexusIndexSearcher
Direct Known Subclasses:
NexusIndexMultiSearcher

public class NexusIndexSearcher extends org.apache.lucene.search.IndexSearcher
An extended Searcher, that holds reference to the IndexingContext that is a searcher for. Needed to provide "extra" data for search hits, that are not on index, and support ArtifactInfoPostprocessor's.
Author:
cstamas
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.search.IndexSearcher

    org.apache.lucene.search.IndexSearcher.LeafSlice, org.apache.lucene.search.IndexSearcher.TooManyClauses, org.apache.lucene.search.IndexSearcher.TooManyNestedClauses
  • Field Summary

    Fields inherited from class org.apache.lucene.search.IndexSearcher

    leafContexts, readerContext
  • Constructor Summary

    Constructors
    Constructor
    Description
    NexusIndexSearcher(org.apache.lucene.index.IndexReader reader)
     
    NexusIndexSearcher(IndexingContext indexingContext, org.apache.lucene.index.IndexReader reader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class org.apache.lucene.search.IndexSearcher

    collectionStatistics, count, createWeight, doc, doc, doc, explain, explain, getDefaultQueryCache, getDefaultQueryCachingPolicy, getDefaultSimilarity, getExecutor, getIndexReader, getLeafContexts, getMaxClauseCount, getQueryCache, getQueryCachingPolicy, getSimilarity, getSlices, getTaskExecutor, getTimeout, getTopReaderContext, rewrite, search, search, search, search, search, search, searchAfter, searchAfter, searchAfter, setDefaultQueryCache, setDefaultQueryCachingPolicy, setMaxClauseCount, setQueryCache, setQueryCachingPolicy, setSimilarity, setTimeout, slices, slices, storedFields, termStatistics, timedOut, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NexusIndexSearcher

      public NexusIndexSearcher(org.apache.lucene.index.IndexReader reader) throws IOException
      Throws:
      IOException
    • NexusIndexSearcher

      public NexusIndexSearcher(IndexingContext indexingContext, org.apache.lucene.index.IndexReader reader) throws IOException
      Throws:
      IOException
  • Method Details