public class SubSearchContext extends FilteredSearchContext
SearchContext.LifetimeDEFAULT_TERMINATE_AFTER, parseFieldMatcher| Constructor and Description |
|---|
SubSearchContext(SearchContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
accessed(long accessTime) |
void |
addRescore(RescoreSearchContext rescore) |
SearchContext |
aggregations(SearchContextAggregations aggregations) |
int[] |
docIdsToLoad() |
SearchContext |
docIdsToLoad(int[] docIdsToLoad,
int docsIdsToLoadFrom,
int docsIdsToLoadSize) |
int |
docIdsToLoadFrom() |
int |
docIdsToLoadSize() |
protected void |
doClose() |
void |
emptyFieldNames() |
boolean |
explain() |
void |
explain(boolean explain) |
FetchSearchResult |
fetchResult() |
FetchSourceContext |
fetchSourceContext() |
SearchContext |
fetchSourceContext(FetchSourceContext fetchSourceContext) |
List<String> |
fieldNames() |
int |
from() |
SearchContext |
from(int from) |
void |
groupStats(List<String> groupStats) |
boolean |
hasFetchSourceContext() |
boolean |
hasFieldNames() |
boolean |
hasScriptFields() |
SearchContextHighlight |
highlight() |
void |
highlight(SearchContextHighlight highlight) |
void |
keepAlive(long keepAlive) |
SearchLookup |
lookup() |
SearchContext |
minimumScore(float minimumScore) |
SearchContext |
parsedPostFilter(ParsedQuery postFilter) |
void |
preProcess()
Should be called before executing the main query and after all other parameters have been set.
|
SearchContext |
queryBoost(float queryBoost) |
QuerySearchResult |
queryResult() |
ScriptFieldsContext |
scriptFields() |
SearchContext |
scrollContext(ScrollContext scrollContext) |
org.apache.lucene.search.Query |
searchFilter(String[] types) |
SearchContext |
searchType(SearchType searchType) |
int |
size() |
SearchContext |
size(int size) |
org.apache.lucene.search.Sort |
sort() |
SearchContext |
sort(org.apache.lucene.search.Sort sort) |
boolean |
sourceRequested()
A shortcut function to see whether there is a fetchSourceContext and it says the source is requested.
|
void |
suggest(SuggestionSearchContext suggest) |
void |
terminateAfter(int terminateAfter) |
org.apache.lucene.util.Counter |
timeEstimateCounter() |
void |
timeoutInMillis(long timeoutInMillis) |
boolean |
trackScores() |
SearchContext |
trackScores(boolean trackScores) |
boolean |
version() |
void |
version(boolean version) |
aggregations, aliasFilter, analysisService, bigArrays, bitsetFilterCache, dfsResult, fieldData, getFetchSubPhaseContext, getObjectMapper, getOriginNanoTime, getProfilers, groupStats, hasTypes, id, indexShard, innerHits, keepAlive, lastAccessTime, mapperService, minimumScore, nowInMillisImpl, numberOfShards, pageCacheRecycler, parsedPostFilter, parsedQuery, parsedQuery, query, queryBoost, queryCollectors, queryParserService, request, rescore, scanContext, scriptService, scrollContext, searcher, searchType, shardTarget, similarityService, smartNameFieldType, smartNameFieldTypeFromAnyType, source, suggest, terminateAfter, timeoutInMillis, typesaddReleasable, alreadyClosed, clearReleasables, close, current, decRef, incRef, nowInMillis, nowInMillisUsed, parseFieldMatcher, refCount, removeCurrent, setCurrent, tryIncRefcontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic SubSearchContext(SearchContext context)
protected void doClose()
doClose in class FilteredSearchContextpublic void preProcess()
SearchContextpreProcess in class FilteredSearchContextpublic org.apache.lucene.search.Query searchFilter(String[] types)
searchFilter in class FilteredSearchContextpublic SearchContext searchType(SearchType searchType)
searchType in class FilteredSearchContextpublic SearchContext queryBoost(float queryBoost)
queryBoost 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 void timeoutInMillis(long timeoutInMillis)
timeoutInMillis in class FilteredSearchContextpublic void terminateAfter(int terminateAfter)
terminateAfter in class FilteredSearchContextpublic SearchContext minimumScore(float minimumScore)
minimumScore in class FilteredSearchContextpublic SearchContext sort(org.apache.lucene.search.Sort sort)
sort in class FilteredSearchContextpublic org.apache.lucene.search.Sort sort()
sort 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 hasFieldNames()
hasFieldNames in class FilteredSearchContextpublic List<String> fieldNames()
fieldNames in class FilteredSearchContextpublic void emptyFieldNames()
emptyFieldNames in class FilteredSearchContextpublic boolean explain()
explain in class FilteredSearchContextpublic void explain(boolean explain)
explain in class FilteredSearchContextpublic void groupStats(List<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 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 SearchLookup lookup()
lookup in class FilteredSearchContextpublic org.apache.lucene.util.Counter timeEstimateCounter()
timeEstimateCounter in class FilteredSearchContextCopyright © 2009–2017. All rights reserved.