Package | Description |
---|---|
org.apache.lucene.queryparser.surround.query |
This package contains SrndQuery and its subclasses.
|
org.apache.lucene.queryparser.xml.builders |
XML Parser factories for different Lucene Query/Filters.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.search.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.search.spans |
The calculus of spans.
|
Modifier and Type | Method and Description |
---|---|
SpanQuery |
SpanNearClauseFactory.makeSpanClause() |
Modifier and Type | Method and Description |
---|---|
protected void |
SpanNearClauseFactory.addSpanQueryWeighted(SpanQuery sq,
float weight) |
Modifier and Type | Method and Description |
---|---|
SpanQuery |
SpanFirstBuilder.getSpanQuery(Element e) |
SpanQuery |
SpanTermBuilder.getSpanQuery(Element e) |
SpanQuery |
SpanQueryBuilderFactory.getSpanQuery(Element e) |
SpanQuery |
SpanQueryBuilder.getSpanQuery(Element e) |
SpanQuery |
SpanOrTermsBuilder.getSpanQuery(Element e) |
SpanQuery |
SpanOrBuilder.getSpanQuery(Element e) |
SpanQuery |
SpanNotBuilder.getSpanQuery(Element e) |
SpanQuery |
BoostingTermBuilder.getSpanQuery(Element e) |
SpanQuery |
SpanNearBuilder.getSpanQuery(Element e) |
Modifier and Type | Method and Description |
---|---|
SpanQuery |
BaseExplanationTestCase.sf(String s,
int b)
MACRO for SpanFirst(SpanTermQuery)
|
SpanQuery |
BaseExplanationTestCase.snear(SpanQuery s,
SpanQuery e,
int slop,
boolean inOrder)
MACRO for SpanNearQuery containing two SpanQueries
|
SpanQuery |
BaseExplanationTestCase.snear(SpanQuery s,
SpanQuery m,
SpanQuery e,
int slop,
boolean inOrder)
MACRO for SpanNearQuery containing three SpanQueries
|
SpanQuery |
BaseExplanationTestCase.snear(String s,
String e,
int slop,
boolean inOrder)
MACRO for SpanNearQuery containing two SpanTerm queries
|
SpanQuery |
BaseExplanationTestCase.snear(String s,
String m,
String e,
int slop,
boolean inOrder)
MACRO for SpanNearQuery containing three SpanTerm queries
|
SpanQuery |
BaseExplanationTestCase.snot(SpanQuery i,
SpanQuery e)
MACRO for SpanNotQuery
|
SpanQuery |
BaseExplanationTestCase.sor(SpanQuery s,
SpanQuery e)
MACRO for SpanOrQuery containing two SpanQueries
|
SpanQuery |
BaseExplanationTestCase.sor(SpanQuery s,
SpanQuery m,
SpanQuery e)
MACRO for SpanOrQuery containing two SpanQueries
|
SpanQuery |
BaseExplanationTestCase.sor(String s,
String e)
MACRO for SpanOrQuery containing two SpanTerm queries
|
SpanQuery |
BaseExplanationTestCase.sor(String s,
String m,
String e)
MACRO for SpanOrQuery containing three SpanTerm queries
|
SpanQuery |
BaseExplanationTestCase.st(String s)
MACRO for SpanTermQuery
|
Modifier and Type | Method and Description |
---|---|
SpanQuery |
BaseExplanationTestCase.snear(SpanQuery s,
SpanQuery e,
int slop,
boolean inOrder)
MACRO for SpanNearQuery containing two SpanQueries
|
SpanQuery |
BaseExplanationTestCase.snear(SpanQuery s,
SpanQuery m,
SpanQuery e,
int slop,
boolean inOrder)
MACRO for SpanNearQuery containing three SpanQueries
|
SpanQuery |
BaseExplanationTestCase.snot(SpanQuery i,
SpanQuery e)
MACRO for SpanNotQuery
|
SpanQuery |
BaseExplanationTestCase.sor(SpanQuery s,
SpanQuery e)
MACRO for SpanOrQuery containing two SpanQueries
|
SpanQuery |
BaseExplanationTestCase.sor(SpanQuery s,
SpanQuery m,
SpanQuery e)
MACRO for SpanOrQuery containing two SpanQueries
|
Modifier and Type | Method and Description |
---|---|
protected void |
WeightedSpanTermExtractor.collectSpanQueryFields(SpanQuery spanQuery,
Set<String> fieldNames) |
protected void |
WeightedSpanTermExtractor.extractWeightedSpanTerms(Map<String,WeightedSpanTerm> terms,
SpanQuery spanQuery)
|
protected boolean |
WeightedSpanTermExtractor.mustRewriteQuery(SpanQuery spanQuery) |
Modifier and Type | Class and Description |
---|---|
class |
PayloadNearQuery
Deprecated.
use
PayloadScoreQuery to wrap SpanNearQuery |
class |
PayloadScoreQuery
A Query class that uses a
PayloadFunction to modify the score of a
wrapped SpanQuery
NOTE: In order to take advantage of this with the default scoring implementation
(DefaultSimilarity ), you must override DefaultSimilarity.scorePayload(int, int, int, BytesRef) ,
which returns 1 by default. |
class |
PayloadTermQuery
Deprecated.
use
PayloadScoreQuery to wrap SpanTermQuery |
class |
SpanNearPayloadCheckQuery
Deprecated.
|
class |
SpanPayloadCheckQuery
Only return those matches that have a specific payload at the given position.
|
Modifier and Type | Field and Description |
---|---|
protected SpanQuery |
SpanPayloadCheckQuery.match |
Constructor and Description |
---|
PayloadNearQuery(SpanQuery[] clauses,
int slop,
boolean inOrder)
Deprecated.
|
PayloadNearQuery(SpanQuery[] clauses,
int slop,
boolean inOrder,
PayloadFunction function)
Deprecated.
|
PayloadScoreQuery(SpanQuery wrappedQuery,
PayloadFunction function)
Creates a new PayloadScoreQuery
|
SpanPayloadCheckQuery(SpanQuery match,
Collection<byte[]> payloadToMatch) |
Modifier and Type | Class and Description |
---|---|
class |
AssertingSpanQuery
Wraps a span query with asserts
|
class |
FieldMaskingSpanQuery
Wrapper to allow
SpanQuery objects participate in composite
single-field SpanQueries by 'lying' about their search field. |
class |
SpanContainingQuery
Keep matches that contain another Spans.
|
class |
SpanFirstQuery
Matches spans near the beginning of a field.
|
class |
SpanMultiTermQueryWrapper<Q extends MultiTermQuery>
Wraps any
MultiTermQuery as a SpanQuery ,
so it can be nested within other SpanQuery classes. |
class |
SpanNearQuery
Matches spans which are near one another.
|
class |
SpanNotQuery
Removes matches which overlap with another SpanQuery or which are
within x tokens before or y tokens after another SpanQuery.
|
class |
SpanOrQuery
Matches the union of its clauses.
|
class |
SpanPositionCheckQuery
Base class for filtering a SpanQuery based on the position of a match.
|
class |
SpanPositionRangeQuery
Checks to see if the
SpanPositionCheckQuery.getMatch() lies between a start and end position
See SpanFirstQuery for a derivation that is optimized for the case where start position is 0. |
class |
SpanTermQuery
Matches spans containing a term.
|
class |
SpanWithinQuery
Keep matches that are contained within another Spans.
|
Modifier and Type | Field and Description |
---|---|
protected SpanQuery |
SpanPositionCheckQuery.match |
Modifier and Type | Field and Description |
---|---|
protected List<SpanQuery> |
SpanNearQuery.clauses |
Modifier and Type | Method and Description |
---|---|
SpanQuery[] |
SpanNearQuery.getClauses()
Return the clauses whose spans are matched.
|
SpanQuery[] |
SpanOrQuery.getClauses()
Return the clauses whose spans are matched.
|
SpanQuery |
SpanNotQuery.getExclude()
Return the SpanQuery whose matches must not overlap those returned.
|
SpanQuery |
SpanNotQuery.getInclude()
Return the SpanQuery whose matches are filtered.
|
SpanQuery |
FieldMaskingSpanQuery.getMaskedQuery() |
SpanQuery |
SpanPositionCheckQuery.getMatch() |
abstract SpanQuery |
SpanMultiTermQueryWrapper.SpanRewriteMethod.rewrite(IndexReader reader,
MultiTermQuery query) |
SpanQuery |
SpanMultiTermQueryWrapper.TopTermsSpanBooleanQueryRewrite.rewrite(IndexReader reader,
MultiTermQuery query) |
static SpanQuery |
SpanTestUtil.spanContainingQuery(SpanQuery big,
SpanQuery little)
Makes a new SpanContainingQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanFirstQuery(SpanQuery query,
int end)
Makes a new SpanFirstQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanNearOrderedQuery(int slop,
SpanQuery... subqueries)
Makes a new ordered SpanNearQuery (with additional asserts)
|
static SpanQuery |
SpanTestUtil.spanNearOrderedQuery(String field,
int slop,
String... terms)
Makes a new ordered SpanNearQuery (with additional asserts) from the provided
terms |
static SpanQuery |
SpanTestUtil.spanNearUnorderedQuery(int slop,
SpanQuery... subqueries)
Makes a new unordered SpanNearQuery (with additional asserts)
|
static SpanQuery |
SpanTestUtil.spanNearUnorderedQuery(String field,
int slop,
String... terms)
Makes a new unordered SpanNearQuery (with additional asserts) from the provided
terms |
static SpanQuery |
SpanTestUtil.spanNotQuery(SpanQuery include,
SpanQuery exclude)
Makes a new SpanNotQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanNotQuery(SpanQuery include,
SpanQuery exclude,
int pre,
int post)
Makes a new SpanNotQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanOrQuery(SpanQuery... subqueries)
Makes a new SpanOrQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanOrQuery(String field,
String... terms)
Makes a new SpanOrQuery (with additional asserts) from the provided
terms . |
static SpanQuery |
SpanTestUtil.spanPositionRangeQuery(SpanQuery query,
int start,
int end)
Makes a new SpanPositionRangeQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanQuery(SpanQuery query)
Adds additional asserts to a spanquery.
|
static SpanQuery |
SpanTestUtil.spanTermQuery(String field,
String term)
Makes a new SpanTermQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanWithinQuery(SpanQuery big,
SpanQuery little)
Makes a new SpanWithinQuery (with additional asserts).
|
Modifier and Type | Method and Description |
---|---|
SpanNearQuery.Builder |
SpanNearQuery.Builder.addClause(SpanQuery clause)
Add a new clause
|
void |
SpanOrQuery.addClause(SpanQuery clause)
Adds a clause to this query
|
static SpanQuery |
SpanTestUtil.spanContainingQuery(SpanQuery big,
SpanQuery little)
Makes a new SpanContainingQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanFirstQuery(SpanQuery query,
int end)
Makes a new SpanFirstQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanNearOrderedQuery(int slop,
SpanQuery... subqueries)
Makes a new ordered SpanNearQuery (with additional asserts)
|
static SpanQuery |
SpanTestUtil.spanNearUnorderedQuery(int slop,
SpanQuery... subqueries)
Makes a new unordered SpanNearQuery (with additional asserts)
|
static SpanQuery |
SpanTestUtil.spanNotQuery(SpanQuery include,
SpanQuery exclude)
Makes a new SpanNotQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanNotQuery(SpanQuery include,
SpanQuery exclude,
int pre,
int post)
Makes a new SpanNotQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanOrQuery(SpanQuery... subqueries)
Makes a new SpanOrQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanPositionRangeQuery(SpanQuery query,
int start,
int end)
Makes a new SpanPositionRangeQuery (with additional asserts).
|
static SpanQuery |
SpanTestUtil.spanQuery(SpanQuery query)
Adds additional asserts to a spanquery.
|
static SpanQuery |
SpanTestUtil.spanWithinQuery(SpanQuery big,
SpanQuery little)
Makes a new SpanWithinQuery (with additional asserts).
|
Constructor and Description |
---|
AssertingSpanQuery(SpanQuery in) |
FieldMaskingSpanQuery(SpanQuery maskedQuery,
String maskedField) |
SpanContainingQuery(SpanQuery big,
SpanQuery little)
Construct a SpanContainingQuery matching spans from
big
that contain at least one spans from little . |
SpanFirstQuery(SpanQuery match,
int end)
Construct a SpanFirstQuery matching spans in
match whose end
position is less than or equal to end . |
SpanNearQuery(SpanQuery[] clauses,
int slop,
boolean inOrder)
Construct a SpanNearQuery.
|
SpanNearQuery(SpanQuery[] clausesIn,
int slop,
boolean inOrder,
boolean collectPayloads)
Deprecated.
|
SpanNotQuery(SpanQuery include,
SpanQuery exclude)
Construct a SpanNotQuery matching spans from
include which
have no overlap with spans from exclude . |
SpanNotQuery(SpanQuery include,
SpanQuery exclude,
int dist)
Construct a SpanNotQuery matching spans from
include which
have no overlap with spans from exclude within
dist tokens of include . |
SpanNotQuery(SpanQuery include,
SpanQuery exclude,
int pre,
int post)
Construct a SpanNotQuery matching spans from
include which
have no overlap with spans from exclude within
pre tokens before or post tokens of include . |
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,TermContext> termContexts)
Create a new SpanWeight
|
SpanWithinQuery(SpanQuery big,
SpanQuery little)
Construct a SpanWithinQuery matching spans from
little
that are inside of big . |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.