Uses of Class
org.apache.lucene.search.Searcher
-
Packages that use Searcher Package Description org.apache.lucene.search Code to search indices.org.apache.lucene.search.function Programmatic control over documents scores.org.apache.lucene.search.join This modules support index-time and query-time joins.org.apache.lucene.search.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.search.spans The calculus of spans. -
-
Uses of Searcher in org.apache.lucene.search
Subclasses of Searcher in org.apache.lucene.search Modifier and Type Class Description classAssertingIndexSearcherHelper class that adds some extra checks to ensure correct usage ofIndexSearcherandWeight.static classCheckHits.ExplanationAssertingSearcheran IndexSearcher that implicitly checks hte explanation of every match whenever it executes a search.classIndexSearcherImplements search over a single IndexReader.classMultiSearcherDeprecated.If you are using MultiSearcher over IndexSearchers, please use MultiReader instead; this class does not properly handle certain kinds of queries (see LUCENE-2756).classParallelMultiSearcherDeprecated.Please pass an ExecutorService toIndexSearcher, instead.Methods in org.apache.lucene.search with parameters of type Searcher Modifier and Type Method Description static voidQueryUtils. check(Random random, Query q1, Searcher s)Various query sanity checks on a searcher, some checks are only done for instanceof IndexSearcher.static voidQueryUtils. check(Random random, Query q1, Searcher s, boolean wrap)static voidCheckHits. checkExplanations(Query query, String defaultFieldName, Searcher searcher)Asserts that the explanation value for every document matching a query corresponds with the true score.static voidCheckHits. checkExplanations(Query query, String defaultFieldName, Searcher searcher, boolean deep)Asserts that the explanation value for every document matching a query corresponds with the true score.static voidQueryUtils. checkExplanations(Query q, Searcher s)deep check that explanations of a query 'score' correctlystatic voidCheckHits. checkHitCollector(Random random, Query query, String defaultFieldName, Searcher searcher, int[] results)Tests that a query matches the an expected set of documents using a HitCollector.static voidCheckHits. checkHits(Random random, Query query, String defaultFieldName, Searcher searcher, int[] results)Tests that a query matches the an expected set of documents using Hits.static voidCheckHits. checkNoMatchExplanations(Query q, String defaultFieldName, Searcher searcher, int[] results)Tests that all documents up to maxDoc which are *not* in the expected result set, have an explanation which indicates that the document does not matchWeightBooleanQuery. createWeight(Searcher searcher)WeightConstantScoreQuery. createWeight(Searcher searcher)WeightDisjunctionMaxQuery. createWeight(Searcher searcher)Create the Weight used to score usWeightFilteredQuery. createWeight(Searcher searcher)Returns a Weight that applies the filter to the enclosed query's Weight.WeightMatchAllDocsQuery. createWeight(Searcher searcher)WeightMultiPhraseQuery. createWeight(Searcher searcher)WeightPhraseQuery. createWeight(Searcher searcher)WeightQuery. createWeight(Searcher searcher)Expert: Constructs an appropriate Weight implementation for this query.WeightTermQuery. createWeight(Searcher searcher)SimilarityQuery. getSimilarity(Searcher searcher)Deprecated.Instead of using "runtime" subclassing/delegation, subclass the Weight instead.Explanation.IDFExplanationSimilarity. idfExplain(Collection<Term> terms, Searcher searcher)Computes a score factor for a phrase.Explanation.IDFExplanationSimilarity. idfExplain(Term term, Searcher searcher)This method forwards toSimilarity.idfExplain(Term,Searcher,int)by passingsearcher.docFreq(term)as the docFreq.Explanation.IDFExplanationSimilarity. idfExplain(Term term, Searcher searcher, int docFreq)Computes a score factor for a simple term and returns an explanation for that score factor.WeightQuery. weight(Searcher searcher)Deprecated.never ever use this method inWeightimplementations.static MultiSearcherQueryUtils. wrapSearcher(Random random, Searcher s, int edge)Given a Searcher, returns a new MultiSearcher wrapping the the original Searcher, as well as several "empty" IndexSearchers -- some of which will have deleted documents in them.Constructors in org.apache.lucene.search with parameters of type Searcher Constructor Description BooleanWeight(Searcher searcher, boolean disableCoord)ConstantWeight(Searcher searcher)DisjunctionMaxWeight(Searcher searcher)Construct the Weight for this Query searched by searcher.ExplanationAsserter(Query q, String defaultFieldName, Searcher s)Constructs an instance which does shallow tests on the ExplanationExplanationAsserter(Query q, String defaultFieldName, Searcher s, boolean deep) -
Uses of Searcher in org.apache.lucene.search.function
Methods in org.apache.lucene.search.function with parameters of type Searcher Modifier and Type Method Description WeightCustomScoreQuery. createWeight(Searcher searcher)WeightValueSourceQuery. createWeight(Searcher searcher) -
Uses of Searcher in org.apache.lucene.search.join
Methods in org.apache.lucene.search.join with parameters of type Searcher Modifier and Type Method Description WeightToChildBlockJoinQuery. createWeight(Searcher searcher)WeightToParentBlockJoinQuery. createWeight(Searcher searcher) -
Uses of Searcher in org.apache.lucene.search.payloads
Methods in org.apache.lucene.search.payloads with parameters of type Searcher Modifier and Type Method Description WeightPayloadNearQuery. createWeight(Searcher searcher)WeightPayloadTermQuery. createWeight(Searcher searcher)Constructors in org.apache.lucene.search.payloads with parameters of type Searcher Constructor Description PayloadNearSpanWeight(SpanQuery query, Searcher searcher)PayloadTermWeight(PayloadTermQuery query, Searcher searcher) -
Uses of Searcher in org.apache.lucene.search.spans
Methods in org.apache.lucene.search.spans with parameters of type Searcher Modifier and Type Method Description WeightFieldMaskingSpanQuery. createWeight(Searcher searcher)WeightSpanQuery. createWeight(Searcher searcher)Constructors in org.apache.lucene.search.spans with parameters of type Searcher Constructor Description SpanWeight(SpanQuery query, Searcher searcher)
-