Uses of Class
org.apache.lucene.search.spans.SpanQuery
-
-
Uses of SpanQuery in org.apache.lucene.queries
Subclasses of SpanQuery in org.apache.lucene.queries Modifier and Type Class Description classSpanMatchNoDocsQueryASpanQuerythat matches no documents. -
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, 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.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.classSpanFirstQueryMatches 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.classSpanNotQueryRemoves 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 protected SpanQuerySpanPositionCheckQuery. matchFields in org.apache.lucene.search.spans with type parameters of type SpanQuery Modifier and Type Field Description protected List<SpanQuery>SpanNearQuery. clausesMethods in org.apache.lucene.search.spans that return SpanQuery Modifier and Type Method Description 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.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 clauseConstructors in org.apache.lucene.search.spans with parameters of type SpanQuery Constructor Description FieldMaskingSpanQuery(SpanQuery maskedQuery, 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.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.search.uhighlight
Methods in org.apache.lucene.search.uhighlight that return types with arguments of type SpanQuery Modifier and Type Method Description Set<SpanQuery>PhraseHelper. getSpanQueries()Methods in org.apache.lucene.search.uhighlight with parameters of type SpanQuery Modifier and Type Method Description protected 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, String field, Predicate<String> fieldMatcher, Function<SpanQuery,Boolean> rewriteQueryPred, Function<Query,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, String field)Creates a span query from the tokenstream. -
Uses of SpanQuery in org.elasticsearch.common.lucene.search
Methods in org.elasticsearch.common.lucene.search that return SpanQuery Modifier and Type Method Description SpanQuerySpanBooleanQueryRewriteWithMaxClause. rewrite(IndexReader reader, MultiTermQuery query) -
Uses of SpanQuery in org.elasticsearch.index.mapper
Methods in org.elasticsearch.index.mapper that return SpanQuery Modifier and Type Method Description SpanQueryMappedFieldType. spanPrefixQuery(String value, SpanMultiTermQueryWrapper.SpanRewriteMethod method, QueryShardContext context)SpanQueryTextFieldMapper.TextFieldType. spanPrefixQuery(String value, SpanMultiTermQueryWrapper.SpanRewriteMethod method, QueryShardContext context) -
Uses of SpanQuery in org.elasticsearch.index.query
Methods in org.elasticsearch.index.query that return SpanQuery Modifier and Type Method Description protected SpanQueryFieldMaskingSpanQueryBuilder. doToQuery(QueryShardContext context)protected SpanQuerySpanTermQueryBuilder. doToQuery(QueryShardContext context)
-