public class SubSearchContext extends FilteredSearchContext
SearchContext.LifetimeDEFAULT_TERMINATE_AFTER| Constructor and Description |
|---|
SubSearchContext(SearchContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
accessed(long accessTime) |
void |
addRescore(RescoreSearchContext rescore) |
SearchContext |
aggregations(SearchContextAggregations aggregations) |
CollapseContext |
collapse() |
int[] |
docIdsToLoad() |
SearchContext |
docIdsToLoad(int[] docIdsToLoad,
int docsIdsToLoadFrom,
int docsIdsToLoadSize) |
int |
docIdsToLoadFrom() |
int |
docIdsToLoadSize() |
protected void |
doClose() |
DocValueFieldsContext |
docValueFieldsContext() |
SearchContext |
docValueFieldsContext(DocValueFieldsContext docValueFieldsContext) |
boolean |
explain() |
void |
explain(boolean explain) |
FetchSearchResult |
fetchResult() |
FetchSourceContext |
fetchSourceContext() |
SearchContext |
fetchSourceContext(FetchSourceContext fetchSourceContext) |
int |
from() |
SearchContext |
from(int from) |
void |
groupStats(java.util.List<java.lang.String> groupStats) |
boolean |
hasFetchSourceContext() |
boolean |
hasScriptFields() |
boolean |
hasStoredFields() |
boolean |
hasStoredFieldsContext() |
SearchContextHighlight |
highlight() |
void |
highlight(SearchContextHighlight highlight) |
void |
keepAlive(long keepAlive) |
SearchContext |
minimumScore(float minimumScore) |
SearchContext |
parsedPostFilter(ParsedQuery postFilter) |
ParsedQuery |
parsedQuery() |
SearchContext |
parsedQuery(ParsedQuery parsedQuery) |
void |
preProcess(boolean rewrite)
Should be called before executing the main query and after all other parameters have been set.
|
org.apache.lucene.search.Query |
query()
The query to execute, might be rewritten.
|
QuerySearchResult |
queryResult() |
ScriptFieldsContext |
scriptFields() |
SearchContext |
scrollContext(ScrollContext scrollContext) |
org.apache.lucene.search.Query |
searchFilter(java.lang.String[] types) |
int |
size() |
SearchContext |
size(int size) |
SortAndFormats |
sort() |
SearchContext |
sort(SortAndFormats sort) |
boolean |
sourceRequested()
A shortcut function to see whether there is a fetchSourceContext and it says the source is requested.
|
StoredFieldsContext |
storedFieldsContext() |
SearchContext |
storedFieldsContext(StoredFieldsContext storedFieldsContext) |
boolean |
storedFieldsRequested()
A shortcut function to see whether there is a storedFieldsContext and it says the fields are requested.
|
void |
suggest(SuggestionSearchContext suggest) |
void |
terminateAfter(int terminateAfter) |
org.apache.lucene.util.Counter |
timeEstimateCounter() |
void |
timeout(TimeValue timeout) |
boolean |
trackScores() |
SearchContext |
trackScores(boolean trackScores) |
boolean |
version() |
void |
version(boolean version) |
addSearchExt, aggregations, aliasFilter, bigArrays, bitsetFilterCache, collapse, dfsResult, fetchPhase, fieldData, getObjectMapper, getOriginNanoTime, getProfilers, getQueryShardContext, getSearchExt, getTask, groupStats, id, indexShard, innerHits, isCancelled, keepAlive, lastAccessTime, lookup, lowLevelCancellation, mapperService, minimumScore, numberOfShards, parsedPostFilter, queryBoost, queryCollectors, request, rescore, scrollContext, searchAfter, searchAfter, searcher, searchType, setTask, shardTarget, similarityService, smartNameFieldType, source, suggest, terminateAfter, timeoutaddReleasable, alreadyClosed, clearReleasables, close, closeInternal, hasOnlySuggest, toStringpublic SubSearchContext(SearchContext context)
protected void doClose()
doClose in class FilteredSearchContextpublic void preProcess(boolean rewrite)
SearchContextpreProcess in class FilteredSearchContextrewrite - if the set query should be rewritten against the searcher returned from SearchContext.searcher()public org.apache.lucene.search.Query searchFilter(java.lang.String[] types)
searchFilter in class FilteredSearchContextpublic SearchContext scrollContext(ScrollContext scrollContext)
scrollContext in class FilteredSearchContextpublic SearchContext aggregations(SearchContextAggregations aggregations)
aggregations in class FilteredSearchContextpublic SearchContextHighlight highlight()
highlight in class FilteredSearchContextpublic void highlight(SearchContextHighlight highlight)
highlight in class FilteredSearchContextpublic void suggest(SuggestionSearchContext suggest)
suggest in class FilteredSearchContextpublic void addRescore(RescoreSearchContext rescore)
addRescore in class FilteredSearchContextpublic boolean hasScriptFields()
hasScriptFields in class FilteredSearchContextpublic ScriptFieldsContext scriptFields()
scriptFields in class FilteredSearchContextpublic boolean sourceRequested()
SearchContextsourceRequested in class FilteredSearchContextpublic boolean hasFetchSourceContext()
hasFetchSourceContext in class FilteredSearchContextpublic FetchSourceContext fetchSourceContext()
fetchSourceContext in class FilteredSearchContextpublic SearchContext fetchSourceContext(FetchSourceContext fetchSourceContext)
fetchSourceContext in class FilteredSearchContextpublic DocValueFieldsContext docValueFieldsContext()
docValueFieldsContext in class SearchContextpublic SearchContext docValueFieldsContext(DocValueFieldsContext docValueFieldsContext)
docValueFieldsContext in class SearchContextpublic void timeout(TimeValue timeout)
timeout in class FilteredSearchContextpublic void terminateAfter(int terminateAfter)
terminateAfter in class FilteredSearchContextpublic SearchContext minimumScore(float minimumScore)
minimumScore in class FilteredSearchContextpublic SearchContext sort(SortAndFormats sort)
sort in class FilteredSearchContextpublic SortAndFormats sort()
sort in class FilteredSearchContextpublic SearchContext parsedQuery(ParsedQuery parsedQuery)
parsedQuery in class FilteredSearchContextpublic ParsedQuery parsedQuery()
parsedQuery in class FilteredSearchContextpublic org.apache.lucene.search.Query query()
SearchContextquery in class FilteredSearchContextpublic SearchContext trackScores(boolean trackScores)
trackScores in class FilteredSearchContextpublic boolean trackScores()
trackScores in class FilteredSearchContextpublic SearchContext parsedPostFilter(ParsedQuery postFilter)
parsedPostFilter in class FilteredSearchContextpublic int from()
from in class FilteredSearchContextpublic SearchContext from(int from)
from in class FilteredSearchContextpublic int size()
size in class FilteredSearchContextpublic SearchContext size(int size)
size in class FilteredSearchContextpublic boolean hasStoredFields()
hasStoredFields in class FilteredSearchContextpublic boolean hasStoredFieldsContext()
hasStoredFieldsContext in class FilteredSearchContextpublic boolean storedFieldsRequested()
SearchContextstoredFieldsRequested in class FilteredSearchContextpublic StoredFieldsContext storedFieldsContext()
storedFieldsContext in class FilteredSearchContextpublic SearchContext storedFieldsContext(StoredFieldsContext storedFieldsContext)
storedFieldsContext in class FilteredSearchContextpublic boolean explain()
explain in class FilteredSearchContextpublic void explain(boolean explain)
explain in class FilteredSearchContextpublic void groupStats(java.util.List<java.lang.String> groupStats)
groupStats in class FilteredSearchContextpublic boolean version()
version in class FilteredSearchContextpublic void version(boolean version)
version in class FilteredSearchContextpublic int[] docIdsToLoad()
docIdsToLoad in class FilteredSearchContextpublic int docIdsToLoadFrom()
docIdsToLoadFrom in class FilteredSearchContextpublic int docIdsToLoadSize()
docIdsToLoadSize in class FilteredSearchContextpublic SearchContext docIdsToLoad(int[] docIdsToLoad, int docsIdsToLoadFrom, int docsIdsToLoadSize)
docIdsToLoad in class FilteredSearchContextpublic CollapseContext collapse()
collapse in class FilteredSearchContextpublic void accessed(long accessTime)
accessed in class FilteredSearchContextpublic void keepAlive(long keepAlive)
keepAlive in class FilteredSearchContextpublic QuerySearchResult queryResult()
queryResult in class FilteredSearchContextpublic FetchSearchResult fetchResult()
fetchResult in class FilteredSearchContextpublic org.apache.lucene.util.Counter timeEstimateCounter()
timeEstimateCounter in class FilteredSearchContext