Package com.gengoai.hermes.corpus
Interface SearchResults
-
- All Superinterfaces:
AutoCloseable
,DocumentCollection
,Iterable<Document>
public interface SearchResults extends DocumentCollection
A collection of
Document
obtained via querying aCorpus
. Search results can be converted to a limited useCorpus
using theasCorpus
method, but not all corpus functionality is allowed.- Author:
- David B. Bracewell
-
-
Field Summary
-
Fields inherited from interface com.gengoai.hermes.corpus.DocumentCollection
REPORT_INTERVAL, REPORT_LEVEL
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Query
getQuery()
Gets the query generating this search results.-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.gengoai.hermes.corpus.DocumentCollection
annotate, apply, apply, apply, asDataSet, cache, documentCount, export, filter, getStreamingContext, groupBy, isEmpty, iterator, nGramCount, parallelStream, query, query, repartition, sample, sample, significantBigrams, significantBigrams, size, stream, termCount, update, update
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getQuery
Query getQuery()
Gets the query generating this search results.- Returns:
- the query generating this search results
-
-