Package org.apache.lucene.sandbox.search
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
-
Interface Summary Interface Description IndexSortSortedNumericDocValuesRangeQuery.ValueComparator Compares the given document's value with a stored reference value.MultiRangeQuery.Range A range represents anything with a min/max value that can compute its relation with another range and can compute if a point is inside itMultiRangeQuery.Relatable Represents a range that can compute its relation with another range and can compute if a point is inside it -
Class Summary Class Description CombinedFieldQuery AQuery
that treats multiple fields as a single stream and scores terms as if you had indexed them as a single term in a single field.CombinedFieldQuery.Builder A builder forCombinedFieldQuery
.CombinedFieldQuery.CombinedFieldScorer CombinedFieldQuery.FieldAndWeight CombinedFieldQuery.WeightedDisiWrapper CoveringQuery AQuery
that allows to have a configurable number or required matches per document.CoveringQuery.CoveringWeight CoveringScorer AScorer
whose number of matches is per-document.DocValuesNumbersQuery LikeDocValuesTermsQuery
, but this query only runs on a longNumericDocValuesField
or aSortedNumericDocValuesField
, matching all documents whose value in the specified field is contained in the provided set of long values.DocValuesTermsQuery AQuery
that only accepts documents whose term value in the specified field is contained in the provided set of allowed terms.IndexSortSortedNumericDocValuesRangeQuery A range query that can take advantage of the fact that the index is sorted to speed up execution.IndexSortSortedNumericDocValuesRangeQuery.BoundedDocIdSetIterator A doc ID set iterator that wraps a delegate iterator and only returns doc IDs in the range [firstDocInclusive, lastDoc).LargeNumHitsTopDocsCollector Optimized collector for large number of hits.LatLonPointPrototypeQueries Holder class for prototype sandboxed queriesLongHashSet MultiNormsLeafSimScorer Copy ofLeafSimScorer
that sums document's norms from multiple fields.MultiNormsLeafSimScorer.MultiFieldNormValues MultiRangeQuery Abstract class for range queries involving multiple ranges against physical points such asIntPoints
All ranges are logically ORed togetherMultiRangeQuery.Builder A builder for multirange queries.MultiRangeQuery.RangeClause Representation of a single clause in a MultiRangeQueryMultiRangeQuery.RangeTree An interval tree of Ranges for speeding up computationsNearestNeighbor KNN search on top of 2D lat/lon indexed points.NearestNeighbor.Cell NearestNeighbor.NearestHit NearestNeighbor.NearestVisitor PhraseWildcardQuery A generalized version ofPhraseQuery
, built with one or moreMultiTermQuery
that provides term expansions for multi-terms (one of the expanded terms must match).PhraseWildcardQuery.Builder Builds aPhraseWildcardQuery
.PhraseWildcardQuery.MultiTerm Phrase term with expansions.PhraseWildcardQuery.PhraseTerm AllPhraseWildcardQuery.PhraseTerm
are light and immutable.PhraseWildcardQuery.SingleTerm Phrase term with no expansion.PhraseWildcardQuery.TermBytesTermState Holds a pair of term bytes - term state.PhraseWildcardQuery.TermData PhraseWildcardQuery.TermsData Holds theTermState
andTermStatistics
for all the matched and collectedTerm
, for all phrase terms, for all segments.PhraseWildcardQuery.TermStats Accumulates the doc freq and total term freq.PhraseWildcardQuery.TestCounters Test counters incremented when assertions are enabled.ProfilerCollector This class wraps a Collector and times the execution of: - setScorer() - collect() - doSetNextReader() - needsScores()ProfilerCollectorResult Public class for profiled timings of the Collectors used in the search.ProfilerCollectorWrapper A collector that profiles how much time is spent calling it.QueryProfilerBreakdown A record of timings for the various operations that may happen during query execution.QueryProfilerIndexSearcher An extension ofIndexSearcher
that records profile information for all queries it executes.QueryProfilerResult This class is the internal representation of a profiled Query, corresponding to a single node in the query tree.QueryProfilerScorer Scorer
wrapper that will compute how much time is spent on moving the iterator, confirming matches and computing scores.QueryProfilerTimer Helps measure how much time is spent running some methods.QueryProfilerTree This class tracks the dependency tree for queries (scoring and rewriting) and generatesQueryProfilerBreakdown
for each node in the tree.QueryProfilerWeight TermAutomatonQuery A proximity query that lets you express an automaton, whose transitions are terms, to match documents.TermAutomatonQuery.EnumAndScorer TermAutomatonScorer TermAutomatonScorer.DocIDQueue Sorts by docID so we can quickly pull out all scorers that are on the same (lowest) docID.TermAutomatonScorer.PositionQueue Sorts by position so we can visit all scorers on one doc, by position.TermAutomatonScorer.PosState TermAutomatonScorer.TermRunAutomaton TokenStreamToTermAutomatonQuery Consumes a TokenStream and creates anTermAutomatonQuery
where the transition labels are tokens from theTermToBytesRefAttribute
. -
Enum Summary Enum Description QueryProfilerTimingType This enum breaks down the query into different sections to describe what was timed.