Uses of Class
org.apache.lucene.queries.spans.SpanQuery
Packages that use SpanQuery
Package
Description
Experimental classes for interacting with payloads
The payloads package provides Query mechanisms for finding and using payloads.
The calculus of spans.
QueryParser which permits complex phrase query syntax eg "(john jon jonathan~) peters*"
This package contains SrndQuery and its subclasses.
Parser that produces Lucene Query objects from XML streams.
XML Parser factories for different Lucene Query/Filters.
Highlighting search terms.
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term
vectors, or analysis.
-
Uses of SpanQuery in org.apache.lucene.payloads
Methods in org.apache.lucene.payloads with parameters of type SpanQueryModifier and TypeMethodDescriptionprivate voidPayloadSpanUtil.getPayloads(Collection<byte[]> payloads, SpanQuery query) -
Uses of SpanQuery in org.apache.lucene.queries.payloads
Subclasses of SpanQuery in org.apache.lucene.queries.payloadsModifier and TypeClassDescriptionclassA Query class that uses aPayloadFunctionto modify the score of a wrapped SpanQueryclassOnly return those matches that have a specific payload at the given position.Fields in org.apache.lucene.queries.payloads declared as SpanQueryModifier and TypeFieldDescriptionprotected final SpanQuerySpanPayloadCheckQuery.matchprivate final SpanQueryPayloadScoreQuery.wrappedQueryConstructors in org.apache.lucene.queries.payloads with parameters of type SpanQueryModifierConstructorDescriptionPayloadScoreQuery(SpanQuery wrappedQuery, PayloadFunction function, PayloadDecoder decoder) Creates a new PayloadScoreQuery that includes the underlying span scoresPayloadScoreQuery(SpanQuery wrappedQuery, PayloadFunction function, PayloadDecoder decoder, boolean includeSpanScore) Creates a new PayloadScoreQuerySpanPayloadCheckQuery(SpanQuery match, List<BytesRef> payloadToMatch) SpanPayloadCheckQuery(SpanQuery match, List<BytesRef> payloadToMatch, SpanPayloadCheckQuery.PayloadType payloadType, SpanPayloadCheckQuery.MatchOperation operation) -
Uses of SpanQuery in org.apache.lucene.queries.spans
Subclasses of SpanQuery in org.apache.lucene.queries.spansModifier and TypeClassDescriptionfinal classWrapper to allowSpanQueryobjects participate in composite single-field SpanQueries by 'lying' about their search field.final classKeep matches that contain another SpanScorer.(package private) classclassMatches spans near the beginning of a field.classSpanMultiTermQueryWrapper<Q extends MultiTermQuery>Wraps anyMultiTermQueryas aSpanQuery, so it can be nested within other SpanQuery classes.classMatches spans which are near one another.private static classfinal classRemoves matches which overlap with another SpanQuery or which are within x tokens before or y tokens after another SpanQuery.final classMatches the union of its clauses.classBase class for filtering a SpanQuery based on the position of a match.classChecks to see if theSpanPositionCheckQuery.getMatch()lies between a start and end positionclassMatches spans containing a term.final classKeep matches that are contained within another Spans.Fields in org.apache.lucene.queries.spans declared as SpanQueryModifier and TypeFieldDescription(package private) SpanQuerySpanContainQuery.bigprivate SpanQuerySpanNotQuery.excludeprivate SpanQuerySpanNotQuery.include(package private) SpanQuerySpanContainQuery.littleprivate final SpanQueryFieldMaskingSpanQuery.maskedQueryprotected SpanQuerySpanPositionCheckQuery.matchFields in org.apache.lucene.queries.spans with type parameters of type SpanQueryModifier and TypeFieldDescriptionSpanNearQuery.Builder.clausesSpanNearQuery.clausesSpanOrQuery.clausesprivate final TopTermsRewrite<List<SpanQuery>> SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite.delegateMethods in org.apache.lucene.queries.spans that return SpanQueryModifier and TypeMethodDescriptionSpanContainQuery.getBig()SpanNearQuery.getClauses()Return the clauses whose spans are matched.SpanOrQuery.getClauses()Return the clauses whose spans are matched.SpanNotQuery.getExclude()Return the SpanQuery whose matches must not overlap those returned.SpanNotQuery.getInclude()Return the SpanQuery whose matches are filtered.SpanContainQuery.getLittle()FieldMaskingSpanQuery.getMaskedQuery()SpanPositionCheckQuery.getMatch()abstract SpanQuerySpanMultiTermQueryWrapper.SpanRewriteMethod.rewrite(IndexReader reader, MultiTermQuery query) SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite.rewrite(IndexReader reader, MultiTermQuery query) Methods in org.apache.lucene.queries.spans with parameters of type SpanQueryModifier and TypeMethodDescriptionAdd a new clauseprivate final voidAdds a clause to this queryprivate Similarity.SimScorerSpanWeight.buildSimWeight(SpanQuery query, IndexSearcher searcher, Map<Term, TermStates> termStates, float boost) Constructors in org.apache.lucene.queries.spans with parameters of type SpanQueryModifierConstructorDescriptionFieldMaskingSpanQuery(SpanQuery maskedQuery, String maskedField) SpanContainingQuery(SpanQuery big, SpanQuery little) Construct a SpanContainingQuery matching spans frombigthat contain at least one spans fromlittle.(package private)SpanContainQuery(SpanQuery big, SpanQuery little) SpanFirstQuery(SpanQuery match, int end) Construct a SpanFirstQuery matching spans inmatchwhose end position is less than or equal toend.SpanNearQuery(SpanQuery[] clausesIn, int slop, boolean inOrder) Construct a SpanNearQuery.SpanNotQuery(SpanQuery include, SpanQuery exclude) Construct a SpanNotQuery matching spans fromincludewhich have no overlap with spans fromexclude.SpanNotQuery(SpanQuery include, SpanQuery exclude, int dist) Construct a SpanNotQuery matching spans fromincludewhich have no overlap with spans fromexcludewithindisttokens ofinclude.SpanNotQuery(SpanQuery include, SpanQuery exclude, int pre, int post) Construct a SpanNotQuery matching spans fromincludewhich have no overlap with spans fromexcludewithinpretokens before orposttokens ofinclude.SpanOrQuery(SpanQuery... clauses) Construct a SpanOrQuery merging the provided clauses.SpanPositionCheckQuery(SpanQuery match) SpanPositionRangeQuery(SpanQuery match, int start, int end) SpanWeight(SpanQuery query, IndexSearcher searcher, Map<Term, TermStates> termStates, float boost) Create a new SpanWeightSpanWithinQuery(SpanQuery big, SpanQuery little) Construct a SpanWithinQuery matching spans fromlittlethat are inside ofbig. -
Uses of SpanQuery in org.apache.lucene.queryparser.complexPhrase
Method parameters in org.apache.lucene.queryparser.complexPhrase with type arguments of type SpanQueryModifier and TypeMethodDescriptionprivate voidComplexPhraseQueryParser.ComplexPhraseQuery.addComplexPhraseClause(List<SpanQuery> spanClauses, BooleanQuery qc) -
Uses of SpanQuery in org.apache.lucene.queryparser.surround.query
Fields in org.apache.lucene.queryparser.surround.query with type parameters of type SpanQueryMethods in org.apache.lucene.queryparser.surround.query that return SpanQueryMethods in org.apache.lucene.queryparser.surround.query with parameters of type SpanQueryModifier and TypeMethodDescriptionprotected voidSpanNearClauseFactory.addSpanQueryWeighted(SpanQuery sq, float weight) -
Uses of SpanQuery in org.apache.lucene.queryparser.xml
Methods in org.apache.lucene.queryparser.xml that return SpanQueryModifier and TypeMethodDescriptionCoreParser.getSpanQuery(Element e) (package private) SpanQueryCoreParser.parseAsSpanQuery(InputStream xmlStream) -
Uses of SpanQuery in org.apache.lucene.queryparser.xml.builders
Methods in org.apache.lucene.queryparser.xml.builders that return SpanQueryModifier and TypeMethodDescriptionBoostingTermBuilder.getSpanQuery(Element e) SpanFirstBuilder.getSpanQuery(Element e) SpanNearBuilder.getSpanQuery(Element e) SpanNotBuilder.getSpanQuery(Element e) SpanOrBuilder.getSpanQuery(Element e) SpanOrTermsBuilder.getSpanQuery(Element e) SpanPositionRangeBuilder.getSpanQuery(Element e) SpanQueryBuilder.getSpanQuery(Element e) SpanQueryBuilderFactory.getSpanQuery(Element e) SpanTermBuilder.getSpanQuery(Element e) -
Uses of SpanQuery in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight with parameters of type SpanQueryModifier and TypeMethodDescriptionprotected voidWeightedSpanTermExtractor.collectSpanQueryFields(SpanQuery spanQuery, Set<String> fieldNames) protected voidWeightedSpanTermExtractor.extractWeightedSpanTerms(Map<String, WeightedSpanTerm> terms, SpanQuery spanQuery, float boost) protected booleanWeightedSpanTermExtractor.mustRewriteQuery(SpanQuery spanQuery) -
Uses of SpanQuery in org.apache.lucene.search.uhighlight
Fields in org.apache.lucene.search.uhighlight with type parameters of type SpanQueryMethods in org.apache.lucene.search.uhighlight that return types with arguments of type SpanQueryMethods in org.apache.lucene.search.uhighlight with parameters of type SpanQueryModifier and TypeMethodDescriptionprotected BooleanUnifiedHighlighter.requiresRewrite(SpanQuery spanQuery) When highlighting phrases accurately, we need to know whichSpanQuery's need to haveQuery.rewrite(IndexSearcher)called on them.Constructor parameters in org.apache.lucene.search.uhighlight with type arguments of type SpanQuery