Uses of Class
org.apache.lucene.search.spans.SpanQuery
-
Packages that use SpanQuery Package Description org.apache.lucene.queryParser.surround.query This package contains SrndQuery and its subclasses.org.apache.lucene.search Code to search indices.org.apache.lucene.search.highlight The highlight package contains classes to provide "keyword in context" features typically used to highlight search terms in the text of results pages.org.apache.lucene.search.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.search.regex Regular expression Query.org.apache.lucene.search.spans The calculus of spans.org.apache.lucene.xmlparser.builders Builders to support various Lucene queries. -
-
Uses of SpanQuery in org.apache.lucene.queryParser.surround.query
Methods in org.apache.lucene.queryParser.surround.query that return SpanQuery Modifier and Type Method Description SpanQuerySpanNearClauseFactory. makeSpanNearClause()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.search
Fields in org.apache.lucene.search declared as SpanQuery Modifier and Type Field Description protected SpanQuerySpanQueryFilter. queryMethods in org.apache.lucene.search that return SpanQuery Modifier and Type Method Description SpanQuerySpanQueryFilter. getQuery()Constructors in org.apache.lucene.search with parameters of type SpanQuery Constructor Description SpanQueryFilter(SpanQuery query)Constructs a filter which only matches documents matchingquery. -
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)Fills aMapwith <@link WeightedSpanTerm>s using the terms from the suppliedSpanQuery.protected booleanWeightedSpanTermExtractor. mustRewriteQuery(SpanQuery spanQuery) -
Uses of SpanQuery in org.apache.lucene.search.payloads
Subclasses of SpanQuery in org.apache.lucene.search.payloads Modifier and Type Class Description classPayloadNearQueryThis class is very similar toSpanNearQueryexcept that it factors in the value of the payloads located at each of the positions where theTermSpansoccurs.classPayloadTermQueryThis class is very similar toSpanTermQueryexcept that it factors in the value of the payload located at each of the positions where theTermoccurs.Constructors in org.apache.lucene.search.payloads with parameters of type SpanQuery Constructor Description PayloadNearQuery(SpanQuery[] clauses, int slop, boolean inOrder)PayloadNearQuery(SpanQuery[] clauses, int slop, boolean inOrder, PayloadFunction function)PayloadNearSpanWeight(SpanQuery query, Searcher searcher) -
Uses of SpanQuery in org.apache.lucene.search.regex
Subclasses of SpanQuery in org.apache.lucene.search.regex Modifier and Type Class Description classSpanRegexQueryDeprecated.Usenew SpanMultiTermQueryWrapper<RegexQuery>(new RegexQuery())instead. -
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.classSpanFirstQueryMatches spans near the beginning of a field.classSpanMultiTermQueryWrapper<Q extends MultiTermQuery>Wraps anyMultiTermQueryas aSpanQuery, so it can be nested within other SpanQuery classes.classSpanNearPayloadCheckQueryOnly return those matches that have a specific payload at the given position.classSpanNearQueryMatches spans which are near one another.classSpanNotQueryRemoves matches which overlap with another SpanQuery.classSpanOrQueryMatches the union of its clauses.classSpanPayloadCheckQueryOnly return those matches that have a specific payload at the given position.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 positionclassSpanTermQueryMatches spans containing a term.Fields in org.apache.lucene.search.spans declared as SpanQuery Modifier and Type Field Description protected SpanQuerySpanPositionCheckQuery. matchprotected SpanQuerySpanWeight. queryFields 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()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 voidSpanOrQuery. addClause(SpanQuery clause)Adds a clause to this queryConstructors in org.apache.lucene.search.spans with parameters of type SpanQuery Constructor Description FieldMaskingSpanQuery(SpanQuery maskedQuery, String maskedField)SpanFirstQuery(SpanQuery match, int end)Construct a SpanFirstQuery matching spans inmatchwhose end position is less than or equal toend.SpanNearQuery(SpanQuery[] clauses, int slop, boolean inOrder)Construct a SpanNearQuery.SpanNearQuery(SpanQuery[] clauses, int slop, boolean inOrder, boolean collectPayloads)SpanNotQuery(SpanQuery include, SpanQuery exclude)Construct a SpanNotQuery matching spans fromincludewhich have no overlap with spans fromexclude.SpanOrQuery(SpanQuery... clauses)Construct a SpanOrQuery merging the provided clauses.SpanPayloadCheckQuery(SpanQuery match, Collection<byte[]> payloadToMatch)SpanPositionCheckQuery(SpanQuery match)SpanPositionRangeQuery(SpanQuery match, int start, int end)SpanWeight(SpanQuery query, Searcher searcher) -
Uses of SpanQuery in org.apache.lucene.xmlparser.builders
Methods in org.apache.lucene.xmlparser.builders that return SpanQuery Modifier and Type Method Description SpanQueryBoostingTermBuilder. getSpanQuery(Element e)SpanQuerySpanFirstBuilder. getSpanQuery(Element e)SpanQuerySpanNearBuilder. getSpanQuery(Element e)SpanQuerySpanNotBuilder. getSpanQuery(Element e)SpanQuerySpanOrBuilder. getSpanQuery(Element e)SpanQuerySpanOrTermsBuilder. getSpanQuery(Element e)SpanQuerySpanQueryBuilder. getSpanQuery(Element e)SpanQuerySpanQueryBuilderFactory. getSpanQuery(Element e)SpanQuerySpanTermBuilder. getSpanQuery(Element e)
-