public class SubSearchContext extends FilteredSearchContext
SearchContext.Lifetime
DEFAULT_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, types
addReleasable, alreadyClosed, clearReleasables, close, current, decRef, incRef, nowInMillis, nowInMillisUsed, parseFieldMatcher, refCount, removeCurrent, setCurrent, tryIncRef
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public SubSearchContext(SearchContext context)
protected void doClose()
doClose
in class FilteredSearchContext
public void preProcess()
SearchContext
preProcess
in class FilteredSearchContext
public org.apache.lucene.search.Query searchFilter(String[] types)
searchFilter
in class FilteredSearchContext
public SearchContext searchType(SearchType searchType)
searchType
in class FilteredSearchContext
public SearchContext queryBoost(float queryBoost)
queryBoost
in class FilteredSearchContext
public SearchContext scrollContext(ScrollContext scrollContext)
scrollContext
in class FilteredSearchContext
public SearchContext aggregations(SearchContextAggregations aggregations)
aggregations
in class FilteredSearchContext
public SearchContextHighlight highlight()
highlight
in class FilteredSearchContext
public void highlight(SearchContextHighlight highlight)
highlight
in class FilteredSearchContext
public void suggest(SuggestionSearchContext suggest)
suggest
in class FilteredSearchContext
public void addRescore(RescoreSearchContext rescore)
addRescore
in class FilteredSearchContext
public boolean hasScriptFields()
hasScriptFields
in class FilteredSearchContext
public ScriptFieldsContext scriptFields()
scriptFields
in class FilteredSearchContext
public boolean sourceRequested()
SearchContext
sourceRequested
in class FilteredSearchContext
public boolean hasFetchSourceContext()
hasFetchSourceContext
in class FilteredSearchContext
public FetchSourceContext fetchSourceContext()
fetchSourceContext
in class FilteredSearchContext
public SearchContext fetchSourceContext(FetchSourceContext fetchSourceContext)
fetchSourceContext
in class FilteredSearchContext
public void timeoutInMillis(long timeoutInMillis)
timeoutInMillis
in class FilteredSearchContext
public void terminateAfter(int terminateAfter)
terminateAfter
in class FilteredSearchContext
public SearchContext minimumScore(float minimumScore)
minimumScore
in class FilteredSearchContext
public SearchContext sort(org.apache.lucene.search.Sort sort)
sort
in class FilteredSearchContext
public org.apache.lucene.search.Sort sort()
sort
in class FilteredSearchContext
public SearchContext trackScores(boolean trackScores)
trackScores
in class FilteredSearchContext
public boolean trackScores()
trackScores
in class FilteredSearchContext
public SearchContext parsedPostFilter(ParsedQuery postFilter)
parsedPostFilter
in class FilteredSearchContext
public int from()
from
in class FilteredSearchContext
public SearchContext from(int from)
from
in class FilteredSearchContext
public int size()
size
in class FilteredSearchContext
public SearchContext size(int size)
size
in class FilteredSearchContext
public boolean hasFieldNames()
hasFieldNames
in class FilteredSearchContext
public List<String> fieldNames()
fieldNames
in class FilteredSearchContext
public void emptyFieldNames()
emptyFieldNames
in class FilteredSearchContext
public boolean explain()
explain
in class FilteredSearchContext
public void explain(boolean explain)
explain
in class FilteredSearchContext
public void groupStats(List<String> groupStats)
groupStats
in class FilteredSearchContext
public boolean version()
version
in class FilteredSearchContext
public void version(boolean version)
version
in class FilteredSearchContext
public int[] docIdsToLoad()
docIdsToLoad
in class FilteredSearchContext
public int docIdsToLoadFrom()
docIdsToLoadFrom
in class FilteredSearchContext
public int docIdsToLoadSize()
docIdsToLoadSize
in class FilteredSearchContext
public SearchContext docIdsToLoad(int[] docIdsToLoad, int docsIdsToLoadFrom, int docsIdsToLoadSize)
docIdsToLoad
in class FilteredSearchContext
public void accessed(long accessTime)
accessed
in class FilteredSearchContext
public void keepAlive(long keepAlive)
keepAlive
in class FilteredSearchContext
public QuerySearchResult queryResult()
queryResult
in class FilteredSearchContext
public FetchSearchResult fetchResult()
fetchResult
in class FilteredSearchContext
public SearchLookup lookup()
lookup
in class FilteredSearchContext
public org.apache.lucene.util.Counter timeEstimateCounter()
timeEstimateCounter
in class FilteredSearchContext
Copyright © 2009–2017. All rights reserved.