public abstract class SearchHits extends SearchResults<Hits>
Modifier and Type | Method and Description |
---|---|
SearchCollocations |
collocations(Annotation annotation,
ContextSize size,
MatchSensitivity sensitivity)
Count words occurring near these hits.
|
SearchDocs |
docs(int maxResultsToGatherPerGroup)
Group hits by document.
|
SearchHits |
filter(HitProperty property,
PropertyValue value)
Get hits with a certain property value.
|
SearchHitGroups |
group(HitProperty groupBy,
int maxResultsToGatherPerGroup)
Group hits by a property.
|
SearchHits |
sample(SampleParameters par)
Sample hits.
|
SearchHits |
sort(HitProperty sortBy)
Sort hits.
|
SearchHits |
window(int first,
int number)
Get window of hits.
|
count, count, docCount, docCount, hitCount, hitCount
cancelSearch, equals, execute, executeAsync, executeInternal, getFromCache, getFromCacheBlock, hashCode, queryInfo, toString
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
fetchAllResults, log, toString
public SearchDocs docs(int maxResultsToGatherPerGroup)
maxResultsToGatherPerGroup
- how many results to gather per grouppublic SearchHitGroups group(HitProperty groupBy, int maxResultsToGatherPerGroup)
groupBy
- what to group bymaxResultsToGatherPerGroup
- how many results to gather per grouppublic SearchHits sort(HitProperty sortBy)
sortBy
- what to sort bypublic SearchHits sample(SampleParameters par)
par
- how many hits to sample; seedpublic SearchHits filter(HitProperty property, PropertyValue value)
property
- property to testvalue
- value to test forpublic SearchHits window(int first, int number)
first
- first hit to selectnumber
- number of hits to selectpublic SearchCollocations collocations(Annotation annotation, ContextSize size, MatchSensitivity sensitivity)
annotation
- the property to use for the collocations (must have a
forward index)size
- context size to use for determining collocationssensitivity
- sensitivity settingsCopyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.