Uses of Class
org.apache.lucene.search.spans.SpanQuery
-
Packages that use SpanQuery Package Description org.apache.lucene.payloads Experimental classes for interacting with payloadsorg.apache.lucene.queries.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.queryparser.complexPhrase QueryParser which permits complex phrase query syntax eg "(john jon jonathan~) peters*"org.apache.lucene.queryparser.surround.query This package contains SrndQuery and its subclasses.org.apache.lucene.queryparser.xml Parser that produces Lucene Query objects from XML streams.org.apache.lucene.queryparser.xml.builders XML Parser factories for different Lucene Query/Filters.org.apache.lucene.search.highlight Highlighting search terms.org.apache.lucene.search.spans The calculus of spans.org.apache.lucene.search.uhighlight The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.org.apache.lucene.util Some utility classes. -
-
Uses of SpanQuery in org.apache.lucene.payloads
Methods in org.apache.lucene.payloads with parameters of type SpanQuery Modifier and Type Method Description private voidPayloadSpanUtil. getPayloads(java.util.Collection<byte[]> payloads, SpanQuery query) -
Uses of SpanQuery in org.apache.lucene.queries.payloads
Subclasses of SpanQuery in org.apache.lucene.queries.payloads Modifier and Type Class Description classPayloadScoreQueryA Query class that uses aPayloadFunctionto modify the score of a wrapped SpanQueryclassSpanPayloadCheckQueryOnly return those matches that have a specific payload at the given position.Fields in org.apache.lucene.queries.payloads declared as SpanQuery Modifier and Type Field Description protected SpanQuerySpanPayloadCheckQuery. matchprivate SpanQueryPayloadScoreQuery. wrappedQueryConstructors in org.apache.lucene.queries.payloads with parameters of type SpanQuery Constructor Description PayloadScoreQuery(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, java.util.List<BytesRef> payloadToMatch) -
Uses of SpanQuery in org.apache.lucene.queryparser.complexPhrase
Method parameters in org.apache.lucene.queryparser.complexPhrase with type arguments of type SpanQuery Modifier and Type Method Description private voidComplexPhraseQueryParser.ComplexPhraseQuery. addComplexPhraseClause(java.util.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 SpanQuery Modifier and Type Field Description private java.util.HashMap<SpanQuery,java.lang.Float>SpanNearClauseFactory. weightBySpanQueryMethods in org.apache.lucene.queryparser.surround.query that return SpanQuery Modifier and Type Method Description SpanQuerySpanNearClauseFactory. makeSpanClause()Methods in org.apache.lucene.queryparser.surround.query with parameters of type SpanQuery Modifier and Type Method Description protected voidSpanNearClauseFactory. addSpanQueryWeighted(SpanQuery sq, float weight) -
Uses of SpanQuery in org.apache.lucene.queryparser.xml
Methods in org.apache.lucene.queryparser.xml that return SpanQuery Modifier and Type Method Description SpanQueryCoreParser. getSpanQuery(org.w3c.dom.Element e)(package private) SpanQueryCoreParser. parseAsSpanQuery(java.io.InputStream xmlStream) -
Uses of SpanQuery in org.apache.lucene.queryparser.xml.builders
Methods in org.apache.lucene.queryparser.xml.builders that return SpanQuery Modifier and Type Method Description SpanQueryBoostingTermBuilder. getSpanQuery(org.w3c.dom.Element e)SpanQuerySpanFirstBuilder. getSpanQuery(org.w3c.dom.Element e)SpanQuerySpanNearBuilder. getSpanQuery(org.w3c.dom.Element e)SpanQuerySpanNotBuilder. getSpanQuery(org.w3c.dom.Element e)SpanQuerySpanOrBuilder. getSpanQuery(org.w3c.dom.Element e)SpanQuerySpanOrTermsBuilder. getSpanQuery(org.w3c.dom.Element e)SpanQuerySpanPositionRangeBuilder. getSpanQuery(org.w3c.dom.Element e)SpanQuerySpanQueryBuilder. getSpanQuery(org.w3c.dom.Element e)SpanQuerySpanQueryBuilderFactory. getSpanQuery(org.w3c.dom.Element e)SpanQuerySpanTermBuilder. getSpanQuery(org.w3c.dom.Element e) -
Uses of SpanQuery in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight with parameters of type SpanQuery Modifier and Type Method Description protected voidWeightedSpanTermExtractor. collectSpanQueryFields(SpanQuery spanQuery, java.util.Set<java.lang.String> fieldNames)protected voidWeightedSpanTermExtractor. extractWeightedSpanTerms(java.util.Map<java.lang.String,WeightedSpanTerm> terms, SpanQuery spanQuery, float boost)protected booleanWeightedSpanTermExtractor. mustRewriteQuery(SpanQuery spanQuery) -
Uses of SpanQuery in org.apache.lucene.search.spans
Subclasses of SpanQuery in org.apache.lucene.search.spans Modifier and Type Class Description classFieldMaskingSpanQueryWrapper to allowSpanQueryobjects participate in composite single-field SpanQueries by 'lying' about their search field.classSpanBoostQueryCounterpart ofBoostQueryfor spans.classSpanContainingQueryKeep matches that contain another SpanScorer.(package private) classSpanContainQueryclassSpanFirstQueryMatches spans near the beginning of a field.classSpanMultiTermQueryWrapper<Q extends MultiTermQuery>Wraps anyMultiTermQueryas aSpanQuery, so it can be nested within other SpanQuery classes.classSpanNearQueryMatches spans which are near one another.private static classSpanNearQuery.SpanGapQueryclassSpanNotQueryRemoves matches which overlap with another SpanQuery or which are within x tokens before or y tokens after another SpanQuery.classSpanOrQueryMatches the union of its clauses.classSpanPositionCheckQueryBase class for filtering a SpanQuery based on the position of a match.classSpanPositionRangeQueryChecks to see if theSpanPositionCheckQuery.getMatch()lies between a start and end position SeeSpanFirstQueryfor a derivation that is optimized for the case where start position is 0.classSpanTermQueryMatches spans containing a term.classSpanWithinQueryKeep matches that are contained within another Spans.Fields in org.apache.lucene.search.spans declared as SpanQuery Modifier and Type Field Description (package private) SpanQuerySpanContainQuery. bigprivate SpanQuerySpanNotQuery. excludeprivate SpanQuerySpanNotQuery. include(package private) SpanQuerySpanContainQuery. littleprivate SpanQueryFieldMaskingSpanQuery. maskedQueryprotected SpanQuerySpanPositionCheckQuery. matchprivate SpanQuerySpanBoostQuery. queryFields in org.apache.lucene.search.spans with type parameters of type SpanQuery Modifier and Type Field Description private java.util.List<SpanQuery>SpanNearQuery.Builder. clausesprotected java.util.List<SpanQuery>SpanNearQuery. clausesprivate java.util.List<SpanQuery>SpanOrQuery. clausesprivate TopTermsRewrite<java.util.List<SpanQuery>>SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite. delegateMethods in org.apache.lucene.search.spans that return SpanQuery Modifier and Type Method Description SpanQuerySpanContainQuery. getBig()SpanQuery[]SpanNearQuery. getClauses()Return the clauses whose spans are matched.SpanQuery[]SpanOrQuery. getClauses()Return the clauses whose spans are matched.SpanQuerySpanNotQuery. getExclude()Return the SpanQuery whose matches must not overlap those returned.SpanQuerySpanNotQuery. getInclude()Return the SpanQuery whose matches are filtered.SpanQuerySpanContainQuery. getLittle()SpanQueryFieldMaskingSpanQuery. getMaskedQuery()SpanQuerySpanPositionCheckQuery. getMatch()SpanQuerySpanBoostQuery. getQuery()Return the wrappedSpanQuery.abstract SpanQuerySpanMultiTermQueryWrapper.SpanRewriteMethod. rewrite(IndexReader reader, MultiTermQuery query)SpanQuerySpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite. rewrite(IndexReader reader, MultiTermQuery query)Methods in org.apache.lucene.search.spans with parameters of type SpanQuery Modifier and Type Method Description SpanNearQuery.BuilderSpanNearQuery.Builder. addClause(SpanQuery clause)Add a new clauseprivate voidSpanOrQuery. addClause(SpanQuery clause)Adds a clause to this queryprivate Similarity.SimScorerSpanWeight. buildSimWeight(SpanQuery query, IndexSearcher searcher, java.util.Map<Term,TermStates> termStates, float boost)Constructors in org.apache.lucene.search.spans with parameters of type SpanQuery Constructor Description FieldMaskingSpanQuery(SpanQuery maskedQuery, java.lang.String maskedField)SpanBoostQuery(SpanQuery query, float boost)Sole constructor: wrapqueryin such a way that the produced scores will be boosted byboost.SpanContainingQuery(SpanQuery big, SpanQuery little)Construct a SpanContainingQuery matching spans frombigthat contain at least one spans fromlittle.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, java.util.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.search.uhighlight
Fields in org.apache.lucene.search.uhighlight with type parameters of type SpanQuery Modifier and Type Field Description private java.util.Set<SpanQuery>PhraseHelper. spanQueriesMethods in org.apache.lucene.search.uhighlight that return types with arguments of type SpanQuery Modifier and Type Method Description java.util.Set<SpanQuery>PhraseHelper. getSpanQueries()Methods in org.apache.lucene.search.uhighlight with parameters of type SpanQuery Modifier and Type Method Description protected java.lang.BooleanUnifiedHighlighter. requiresRewrite(SpanQuery spanQuery)When highlighting phrases accurately, we need to know whichSpanQuery's need to haveQuery.rewrite(IndexReader)called on them.Constructor parameters in org.apache.lucene.search.uhighlight with type arguments of type SpanQuery Constructor Description PhraseHelper(Query query, java.lang.String field, java.util.function.Predicate<java.lang.String> fieldMatcher, java.util.function.Function<SpanQuery,java.lang.Boolean> rewriteQueryPred, java.util.function.Function<Query,java.util.Collection<Query>> preExtractRewriteFunction, boolean ignoreQueriesNeedingRewrite)Constructor. -
Uses of SpanQuery in org.apache.lucene.util
Methods in org.apache.lucene.util that return SpanQuery Modifier and Type Method Description protected SpanQueryQueryBuilder. createSpanQuery(TokenStream in, java.lang.String field)Creates a span query from the tokenstream.
-