public final class MatchesUtils
extends
Matches
and
MatchesIterator
interfaces.Modifier and Type | Field and Description |
---|---|
static Matches |
MATCH_WITH_NO_TERMS
Indicates a match with no term positions, for example on a Point or DocValues field,
or a field indexed as docs and freqs only
|
Modifier and Type | Method and Description |
---|---|
static MatchesIterator |
disjunction(LeafReaderContext context,
int doc,
Query query,
field,
BytesRefIterator terms)
Create a MatchesIterator that is a disjunction over a list of terms extracted from a
BytesRefIterator . |
static MatchesIterator |
<MatchesIterator> subMatches)
Create a MatchesIterator that iterates in order over all matches in a set of subiterators
|
static Matches |
field,
IOSupplier<MatchesIterator> mis)
Create a Matches for a single field
|
static Matches |
<Matches> subMatches)
Amalgamate a collection of
Matches into a single object |
public static final Matches MATCH_WITH_NO_TERMS
public static <Matches> subMatches)
Matches
into a single objectpublic static field, IOSupplier<MatchesIterator> mis) throws
public static <MatchesIterator> subMatches) throws
public static MatchesIterator disjunction(LeafReaderContext context, int doc, Query query, field, BytesRefIterator terms) throws
BytesRefIterator
.
Only terms that have at least one match in the given document will be included
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.