Constructor SurrogateIndexSearcher
SurrogateIndexSearcher(String, SurrogateIndexReader, CacheContext, IDataFormatService, IObjectContainer)
Creates a searcher searching the provided index.
Declaration
public SurrogateIndexSearcher(string objectUid, SurrogateIndexReader r, CacheContext cacheContext, IDataFormatService dataFormatService, IObjectContainer container)
Parameters
Type | Name | Description |
---|---|---|
System.String | objectUid | |
SurrogateIndexReader | r | |
CacheContext | cacheContext | |
IDataFormatService | dataFormatService | |
IObjectContainer | container |
SurrogateIndexSearcher(String, IndexReader, TaskScheduler)
Runs searches for each segment separately, using the provided System.Threading.Tasks.TaskScheduler. SurrogateIndexSearcher will not shutdown/awaitTermination this System.Threading.Tasks.TaskScheduler on dispose; you must do so, eventually, on your own.
@lucene.experimental
Declaration
public SurrogateIndexSearcher(string objectUid, IndexReader r, TaskScheduler executor)
Parameters
Type | Name | Description |
---|---|---|
System.String | objectUid | |
IndexReader | r | |
System.Threading.Tasks.TaskScheduler | executor |
SurrogateIndexSearcher(String, IndexReaderContext, TaskScheduler)
Creates a searcher searching the provided top-level IndexReaderContext.
Given a non-null
System.Threading.Tasks.TaskScheduler this method runs
searches for each segment separately, using the provided System.Threading.Tasks.TaskScheduler.
SurrogateIndexSearcher will not shutdown/awaitTermination this System.Threading.Tasks.TaskScheduler on
close; you must do so, eventually, on your own.
@lucene.experimental
Declaration
public SurrogateIndexSearcher(string objectUID, IndexReaderContext context, TaskScheduler executor)
Parameters
Type | Name | Description |
---|---|---|
System.String | objectUID | |
IndexReaderContext | context | |
System.Threading.Tasks.TaskScheduler | executor |
See Also
SurrogateIndexSearcher(String, IndexReaderContext)
Creates a searcher searching the provided top-level IndexReaderContext.
@lucene.experimental
Declaration
public SurrogateIndexSearcher(string objectUid, IndexReaderContext context)
Parameters
Type | Name | Description |
---|---|---|
System.String | objectUid | |
IndexReaderContext | context |