public interface Matches extends Iterable<String>
MatchesIterator
for a particular field, call getMatches(String)
.
Note that you can call getMatches(String)
multiple times to retrieve new
iterators, but it is not thread-safe.Modifier and Type | Interface and Description |
---|---|
static interface |
Matches.MatchesIteratorSupplier
A functional interface that supplies a
MatchesIterator |
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 Matches |
forField(String field,
Matches.MatchesIteratorSupplier mis)
Create a Matches for a single field
|
static Matches |
fromSubMatches(List<Matches> subMatches)
Amalgamate a collection of
Matches into a single object |
MatchesIterator |
getMatches(String field)
Returns a
MatchesIterator over the matches for a single field,
or null if there are no matches in that field. |
forEach, iterator, spliterator
static final Matches MATCH_WITH_NO_TERMS
MatchesIterator getMatches(String field) throws IOException
MatchesIterator
over the matches for a single field,
or null
if there are no matches in that field.IOException
static Matches fromSubMatches(List<Matches> subMatches)
Matches
into a single objectstatic Matches forField(String field, Matches.MatchesIteratorSupplier mis) throws IOException
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.