Package org.icij.datashare.text.indexing
Interface Indexer.Searcher
-
- Enclosing interface:
- Indexer
public static interface Indexer.Searcher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearScroll()java.util.stream.Stream<? extends Entity>execute()Indexer.Searcherlimit(int maxCount)Indexer.SearcherofStatus(Document.Status indexed)java.util.stream.Stream<? extends Entity>scroll()java.util.stream.Stream<? extends Entity>scroll(int numSlice, int nbSlices)Indexer.Searcherset(com.fasterxml.jackson.databind.JsonNode jsonQuery)Indexer.SearchersetFromTemplate(String jsonQueryTemplate, String query, int fuzziness, boolean phraseMatches)Indexer.SearcherthatMatchesFieldValue(String key, Object value)longtotalHits()Indexer.Searcherwith(String query)Indexer.Searcherwith(String query, int fuzziness, boolean phraseMatches)Indexer.Searcherwith(Pipeline.Type... nlpPipelines)Indexer.Searcherwith(Tag... tags)Indexer.SearcherwithFieldValues(String key, String... values)Indexer.Searcherwithout(Pipeline.Type... nlpPipelines)Indexer.SearcherwithoutSource(String... fields)Indexer.SearcherwithPrefixQuery(String key, String... values)Indexer.SearcherwithSource(boolean source)Indexer.SearcherwithSource(String... fields)
-
-
-
Method Detail
-
ofStatus
Indexer.Searcher ofStatus(Document.Status indexed)
-
execute
java.util.stream.Stream<? extends Entity> execute() throws IOException
- Throws:
IOException
-
scroll
java.util.stream.Stream<? extends Entity> scroll() throws IOException
- Throws:
IOException
-
scroll
java.util.stream.Stream<? extends Entity> scroll(int numSlice, int nbSlices) throws IOException
- Throws:
IOException
-
set
Indexer.Searcher set(com.fasterxml.jackson.databind.JsonNode jsonQuery)
-
setFromTemplate
Indexer.Searcher setFromTemplate(String jsonQueryTemplate, String query, int fuzziness, boolean phraseMatches)
-
withSource
Indexer.Searcher withSource(String... fields)
-
withoutSource
Indexer.Searcher withoutSource(String... fields)
-
withSource
Indexer.Searcher withSource(boolean source)
-
without
Indexer.Searcher without(Pipeline.Type... nlpPipelines)
-
with
Indexer.Searcher with(Pipeline.Type... nlpPipelines)
-
limit
Indexer.Searcher limit(int maxCount)
-
clearScroll
void clearScroll() throws IOException- Throws:
IOException
-
totalHits
long totalHits()
-
with
Indexer.Searcher with(Tag... tags)
-
with
Indexer.Searcher with(String query)
-
with
Indexer.Searcher with(String query, int fuzziness, boolean phraseMatches)
-
thatMatchesFieldValue
Indexer.Searcher thatMatchesFieldValue(String key, Object value)
-
withFieldValues
Indexer.Searcher withFieldValues(String key, String... values)
-
withPrefixQuery
Indexer.Searcher withPrefixQuery(String key, String... values)
-
-