public class PercolateContext extends SearchContext
SearchContext.Lifetime| 修飾子とタイプ | フィールドと説明 |
|---|---|
boolean |
doSort |
boolean |
limit |
byte |
percolatorTypeId |
DEFAULT_TERMINATE_AFTER, parseFieldMatcher| コンストラクタと説明 |
|---|
PercolateContext(PercolateShardRequest request,
SearchShardTarget searchShardTarget,
IndexShard indexShard,
IndexService indexService,
PageCacheRecycler pageCacheRecycler,
BigArrays bigArrays,
ScriptService scriptService,
org.apache.lucene.search.Query aliasFilter,
ParseFieldMatcher parseFieldMatcher) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
accessed(long accessTime) |
void |
addRescore(RescoreSearchContext rescore) |
SearchContextAggregations |
aggregations() |
SearchContext |
aggregations(SearchContextAggregations aggregations) |
org.apache.lucene.search.Query |
aliasFilter() |
AnalysisService |
analysisService() |
BigArrays |
bigArrays() |
BitsetFilterCache |
bitsetFilterCache() |
int |
contextSize() |
void |
copyContextAndHeadersFrom(HasContextAndHeaders other)
copies over the context and the headers
|
void |
copyContextFrom(HasContext other)
Copies the context from the given context holder to this context holder.
|
void |
copyHeadersFrom(HasHeaders from) |
DfsSearchResult |
dfsResult() |
int[] |
docIdsToLoad() |
SearchContext |
docIdsToLoad(int[] docIdsToLoad,
int docsIdsToLoadFrom,
int docsIdsToLoadSize) |
int |
docIdsToLoadFrom() |
int |
docIdsToLoadSize() |
protected void |
doClose() |
org.apache.lucene.search.IndexSearcher |
docSearcher() |
void |
emptyFieldNames() |
boolean |
explain() |
void |
explain(boolean explain) |
FetchSearchResult |
fetchResult() |
FetchSourceContext |
fetchSourceContext() |
SearchContext |
fetchSourceContext(FetchSourceContext fetchSourceContext) |
IndexFieldDataService |
fieldData() |
List<String> |
fieldNames() |
int |
from() |
SearchContext |
from(int from) |
ImmutableOpenMap<Object,Object> |
getContext() |
<SubPhaseContext extends FetchSubPhaseContext> |
getFetchSubPhaseContext(FetchSubPhase.ContextFactory<SubPhaseContext> contextFactory) |
<V> V |
getFromContext(Object key) |
<V> V |
getFromContext(Object key,
V defaultValue) |
<V> V |
getHeader(String key) |
Set<String> |
getHeaders() |
ObjectMapper |
getObjectMapper(String name) |
long |
getOriginNanoTime() |
Profilers |
getProfilers()
Return a handle over the profilers for the current search request, or
null if profiling is not enabled. |
List<String> |
groupStats() |
void |
groupStats(List<String> groupStats) |
boolean |
hasFetchSourceContext() |
boolean |
hasFieldNames() |
boolean |
hasHeader(String key) |
boolean |
hasInContext(Object key)
Checks if the context contains an entry with the given key
|
boolean |
hasScriptFields() |
boolean |
hasTypes() |
SearchContextHighlight |
highlight() |
void |
highlight(SearchContextHighlight highlight) |
FetchSubPhase.HitContext |
hitContext() |
long |
id() |
IndexService |
indexService() |
IndexShard |
indexShard() |
void |
initialize(Engine.Searcher docSearcher,
ParsedDocument parsedDocument) |
InnerHitsContext |
innerHits() |
boolean |
isContextEmpty()
Checks if the context is empty.
|
long |
keepAlive() |
void |
keepAlive(long keepAlive) |
long |
lastAccessTime() |
SearchLookup |
lookup() |
MapperService |
mapperService() |
Float |
minimumScore() |
SearchContext |
minimumScore(float minimumScore) |
protected long |
nowInMillisImpl() |
int |
numberOfShards() |
PageCacheRecycler |
pageCacheRecycler() |
ParsedQuery |
parsedPostFilter() |
SearchContext |
parsedPostFilter(ParsedQuery postFilter) |
ParsedQuery |
parsedQuery() |
SearchContext |
parsedQuery(ParsedQuery query) |
ConcurrentMap<org.apache.lucene.util.BytesRef,org.apache.lucene.search.Query> |
percolateQueries() |
org.apache.lucene.search.Query |
percolateQuery() |
void |
percolateQuery(org.apache.lucene.search.Query percolateQuery) |
void |
preProcess()
Should be called before executing the main query and after all other parameters have been set.
|
void |
putAllInContext(com.carrotsearch.hppc.ObjectObjectAssociativeContainer<Object,Object> map)
Attaches the given values to the context
|
<V> void |
putHeader(String key,
V value) |
<V> V |
putInContext(Object key,
Object value)
Attaches the given value to the context.
|
org.apache.lucene.search.Query |
query()
The query to execute, might be rewritten.
|
float |
queryBoost() |
SearchContext |
queryBoost(float queryBoost) |
Map<Class<?>,org.apache.lucene.search.Collector> |
queryCollectors()
Return a view of the additional query collectors that should be run for this context.
|
IndexQueryParserService |
queryParserService() |
QuerySearchResult |
queryResult() |
ShardSearchRequest |
request() |
List<RescoreSearchContext> |
rescore() |
ScanContext |
scanContext() |
ScriptFieldsContext |
scriptFields() |
ScriptService |
scriptService() |
ScrollContext |
scrollContext() |
SearchContext |
scrollContext(ScrollContext scroll) |
ContextIndexSearcher |
searcher() |
org.apache.lucene.search.Query |
searchFilter(String[] types) |
SearchType |
searchType() |
SearchContext |
searchType(SearchType searchType) |
SearchShardTarget |
shardTarget() |
SimilarityService |
similarityService() |
int |
size() |
SearchContext |
size(int size) |
MappedFieldType |
smartNameFieldType(String name) |
MappedFieldType |
smartNameFieldTypeFromAnyType(String name)
Looks up the given field, but does not restrict to fields in the types set on this context.
|
org.apache.lucene.search.Sort |
sort() |
SearchContext |
sort(org.apache.lucene.search.Sort sort) |
String |
source() |
boolean |
sourceRequested()
A shortcut function to see whether there is a fetchSourceContext and it says the source is requested.
|
SuggestionSearchContext |
suggest() |
void |
suggest(SuggestionSearchContext suggest) |
int |
terminateAfter() |
void |
terminateAfter(int terminateAfter) |
org.apache.lucene.util.Counter |
timeEstimateCounter() |
long |
timeoutInMillis() |
void |
timeoutInMillis(long timeoutInMillis) |
boolean |
trackScores() |
SearchContext |
trackScores(boolean trackScores) |
String[] |
types() |
void |
types(String[] types) |
boolean |
version() |
void |
version(boolean version) |
addReleasable, clearReleasables, close, current, nowInMillis, nowInMillisUsed, parseFieldMatcher, removeCurrent, setCurrentpublic boolean limit
public boolean doSort
public byte percolatorTypeId
public PercolateContext(PercolateShardRequest request, SearchShardTarget searchShardTarget, IndexShard indexShard, IndexService indexService, PageCacheRecycler pageCacheRecycler, BigArrays bigArrays, ScriptService scriptService, org.apache.lucene.search.Query aliasFilter, ParseFieldMatcher parseFieldMatcher)
public org.apache.lucene.search.IndexSearcher docSearcher()
public void initialize(Engine.Searcher docSearcher, ParsedDocument parsedDocument)
public IndexShard indexShard()
indexShard クラス内 SearchContextpublic IndexService indexService()
public ConcurrentMap<org.apache.lucene.util.BytesRef,org.apache.lucene.search.Query> percolateQueries()
public org.apache.lucene.search.Query percolateQuery()
public void percolateQuery(org.apache.lucene.search.Query percolateQuery)
public FetchSubPhase.HitContext hitContext()
public SearchContextHighlight highlight()
highlight クラス内 SearchContextpublic void highlight(SearchContextHighlight highlight)
highlight クラス内 SearchContextpublic SearchShardTarget shardTarget()
shardTarget クラス内 SearchContextpublic SearchLookup lookup()
lookup クラス内 SearchContextprotected void doClose()
doClose クラス内 SearchContextpublic MapperService mapperService()
mapperService クラス内 SearchContextpublic SearchContext parsedQuery(ParsedQuery query)
parsedQuery クラス内 SearchContextpublic ParsedQuery parsedQuery()
parsedQuery クラス内 SearchContextpublic org.apache.lucene.search.Query query()
SearchContextquery クラス内 SearchContextpublic String[] types()
types クラス内 SearchContextpublic void types(String[] types)
public IndexFieldDataService fieldData()
fieldData クラス内 SearchContextpublic SearchContextAggregations aggregations()
aggregations クラス内 SearchContextpublic SearchContext aggregations(SearchContextAggregations aggregations)
aggregations クラス内 SearchContextpublic <SubPhaseContext extends FetchSubPhaseContext> SubPhaseContext getFetchSubPhaseContext(FetchSubPhase.ContextFactory<SubPhaseContext> contextFactory)
getFetchSubPhaseContext クラス内 SearchContextpublic void preProcess()
SearchContextpreProcess クラス内 SearchContextpublic org.apache.lucene.search.Query searchFilter(String[] types)
searchFilter クラス内 SearchContextpublic long id()
id クラス内 SearchContextpublic String source()
source クラス内 SearchContextpublic ShardSearchRequest request()
request クラス内 SearchContextpublic SearchType searchType()
searchType クラス内 SearchContextpublic SearchContext searchType(SearchType searchType)
searchType クラス内 SearchContextpublic int numberOfShards()
numberOfShards クラス内 SearchContextpublic boolean hasTypes()
hasTypes クラス内 SearchContextpublic float queryBoost()
queryBoost クラス内 SearchContextpublic SearchContext queryBoost(float queryBoost)
queryBoost クラス内 SearchContextpublic long getOriginNanoTime()
getOriginNanoTime クラス内 SearchContextprotected long nowInMillisImpl()
nowInMillisImpl クラス内 SearchContextpublic ScrollContext scrollContext()
scrollContext クラス内 SearchContextpublic SearchContext scrollContext(ScrollContext scroll)
scrollContext クラス内 SearchContextpublic SuggestionSearchContext suggest()
suggest クラス内 SearchContextpublic void suggest(SuggestionSearchContext suggest)
suggest クラス内 SearchContextpublic List<RescoreSearchContext> rescore()
rescore クラス内 SearchContextpublic void addRescore(RescoreSearchContext rescore)
addRescore クラス内 SearchContextpublic boolean hasScriptFields()
hasScriptFields クラス内 SearchContextpublic ScriptFieldsContext scriptFields()
scriptFields クラス内 SearchContextpublic boolean sourceRequested()
SearchContextsourceRequested クラス内 SearchContextpublic boolean hasFetchSourceContext()
hasFetchSourceContext クラス内 SearchContextpublic FetchSourceContext fetchSourceContext()
fetchSourceContext クラス内 SearchContextpublic SearchContext fetchSourceContext(FetchSourceContext fetchSourceContext)
fetchSourceContext クラス内 SearchContextpublic ContextIndexSearcher searcher()
searcher クラス内 SearchContextpublic AnalysisService analysisService()
analysisService クラス内 SearchContextpublic IndexQueryParserService queryParserService()
queryParserService クラス内 SearchContextpublic SimilarityService similarityService()
similarityService クラス内 SearchContextpublic ScriptService scriptService()
scriptService クラス内 SearchContextpublic PageCacheRecycler pageCacheRecycler()
pageCacheRecycler クラス内 SearchContextpublic BigArrays bigArrays()
bigArrays クラス内 SearchContextpublic BitsetFilterCache bitsetFilterCache()
bitsetFilterCache クラス内 SearchContextpublic long timeoutInMillis()
timeoutInMillis クラス内 SearchContextpublic void timeoutInMillis(long timeoutInMillis)
timeoutInMillis クラス内 SearchContextpublic int terminateAfter()
terminateAfter クラス内 SearchContextpublic void terminateAfter(int terminateAfter)
terminateAfter クラス内 SearchContextpublic SearchContext minimumScore(float minimumScore)
minimumScore クラス内 SearchContextpublic Float minimumScore()
minimumScore クラス内 SearchContextpublic SearchContext sort(org.apache.lucene.search.Sort sort)
sort クラス内 SearchContextpublic org.apache.lucene.search.Sort sort()
sort クラス内 SearchContextpublic SearchContext trackScores(boolean trackScores)
trackScores クラス内 SearchContextpublic boolean trackScores()
trackScores クラス内 SearchContextpublic SearchContext parsedPostFilter(ParsedQuery postFilter)
parsedPostFilter クラス内 SearchContextpublic ParsedQuery parsedPostFilter()
parsedPostFilter クラス内 SearchContextpublic org.apache.lucene.search.Query aliasFilter()
aliasFilter クラス内 SearchContextpublic int from()
from クラス内 SearchContextpublic SearchContext from(int from)
from クラス内 SearchContextpublic int size()
size クラス内 SearchContextpublic SearchContext size(int size)
size クラス内 SearchContextpublic boolean hasFieldNames()
hasFieldNames クラス内 SearchContextpublic List<String> fieldNames()
fieldNames クラス内 SearchContextpublic void emptyFieldNames()
emptyFieldNames クラス内 SearchContextpublic boolean explain()
explain クラス内 SearchContextpublic void explain(boolean explain)
explain クラス内 SearchContextpublic List<String> groupStats()
groupStats クラス内 SearchContextpublic void groupStats(List<String> groupStats)
groupStats クラス内 SearchContextpublic boolean version()
version クラス内 SearchContextpublic void version(boolean version)
version クラス内 SearchContextpublic int[] docIdsToLoad()
docIdsToLoad クラス内 SearchContextpublic int docIdsToLoadFrom()
docIdsToLoadFrom クラス内 SearchContextpublic int docIdsToLoadSize()
docIdsToLoadSize クラス内 SearchContextpublic SearchContext docIdsToLoad(int[] docIdsToLoad, int docsIdsToLoadFrom, int docsIdsToLoadSize)
docIdsToLoad クラス内 SearchContextpublic void accessed(long accessTime)
accessed クラス内 SearchContextpublic long lastAccessTime()
lastAccessTime クラス内 SearchContextpublic long keepAlive()
keepAlive クラス内 SearchContextpublic void keepAlive(long keepAlive)
keepAlive クラス内 SearchContextpublic DfsSearchResult dfsResult()
dfsResult クラス内 SearchContextpublic QuerySearchResult queryResult()
queryResult クラス内 SearchContextpublic FetchSearchResult fetchResult()
fetchResult クラス内 SearchContextpublic ScanContext scanContext()
scanContext クラス内 SearchContextpublic MappedFieldType smartNameFieldType(String name)
smartNameFieldType クラス内 SearchContextpublic MappedFieldType smartNameFieldTypeFromAnyType(String name)
SearchContextpublic ObjectMapper getObjectMapper(String name)
getObjectMapper クラス内 SearchContextpublic org.apache.lucene.util.Counter timeEstimateCounter()
timeEstimateCounter クラス内 SearchContextpublic InnerHitsContext innerHits()
innerHits クラス内 SearchContextpublic <V> V putInContext(Object key, Object value)
HasContextputInContext インタフェース内 HasContextputInContext クラス内 DelegatingHasContextAndHeadersnull if there was none.public void putAllInContext(com.carrotsearch.hppc.ObjectObjectAssociativeContainer<Object,Object> map)
HasContextputAllInContext インタフェース内 HasContextputAllInContext クラス内 DelegatingHasContextAndHeaderspublic <V> V getFromContext(Object key)
getFromContext インタフェース内 HasContextgetFromContext クラス内 DelegatingHasContextAndHeadersHasContext.putInContext(Object, Object)public <V> V getFromContext(Object key, V defaultValue)
getFromContext インタフェース内 HasContextgetFromContext クラス内 DelegatingHasContextAndHeadersdefaultValue - The default value that should be returned for the given key, if no
value is currently associated with it.HasContext.putInContext(Object, Object)public boolean hasInContext(Object key)
HasContexthasInContext インタフェース内 HasContexthasInContext クラス内 DelegatingHasContextAndHeaderspublic int contextSize()
contextSize インタフェース内 HasContextcontextSize クラス内 DelegatingHasContextAndHeaderspublic boolean isContextEmpty()
HasContextisContextEmpty インタフェース内 HasContextisContextEmpty クラス内 DelegatingHasContextAndHeaderspublic ImmutableOpenMap<Object,Object> getContext()
getContext インタフェース内 HasContextgetContext クラス内 DelegatingHasContextAndHeaderspublic void copyContextFrom(HasContext other)
HasContextcopyContextFrom インタフェース内 HasContextcopyContextFrom クラス内 DelegatingHasContextAndHeaderspublic <V> void putHeader(String key, V value)
putHeader インタフェース内 HasHeadersputHeader クラス内 DelegatingHasContextAndHeaderspublic <V> V getHeader(String key)
getHeader インタフェース内 HasHeadersgetHeader クラス内 DelegatingHasContextAndHeaderspublic boolean hasHeader(String key)
hasHeader インタフェース内 HasHeadershasHeader クラス内 DelegatingHasContextAndHeaderspublic Set<String> getHeaders()
getHeaders インタフェース内 HasHeadersgetHeaders クラス内 DelegatingHasContextAndHeaderspublic void copyHeadersFrom(HasHeaders from)
copyHeadersFrom インタフェース内 HasHeaderscopyHeadersFrom クラス内 DelegatingHasContextAndHeaderspublic void copyContextAndHeadersFrom(HasContextAndHeaders other)
HasContextAndHeaderscopyContextAndHeadersFrom インタフェース内 HasContextAndHeaderscopyContextAndHeadersFrom クラス内 DelegatingHasContextAndHeadersother - another object supporting headers and contextpublic Map<Class<?>,org.apache.lucene.search.Collector> queryCollectors()
SearchContextqueryCollectors クラス内 SearchContextpublic Profilers getProfilers()
SearchContextnull if profiling is not enabled.getProfilers クラス内 SearchContextCopyright © 2009–2016. All rights reserved.