mirror of https://github.com/apache/lucene.git
Remove deprecated IndexSearcher#getExecutor method (#12580)
Use getTaskExecutor instead. This is important to enforce tracking of tasks that run in each thread. Relates to #12578
This commit is contained in:
parent
e43bea4fa4
commit
3deead0ed3
|
@ -57,6 +57,9 @@ API Changes
|
|||
|
||||
* GITHUB#12407: Removed Scorable#docID. (Adrien Grand)
|
||||
|
||||
* GITHUB#12580: Remove deprecated IndexSearcher#getExecutor in favour of executing concurrent tasks using
|
||||
the TaskExecutor that the searcher holds, retrieved via IndexSearcher#getTaskExecutor (Luca Cavanna)
|
||||
|
||||
New Features
|
||||
---------------------
|
||||
|
||||
|
@ -131,6 +134,8 @@ Other
|
|||
|
||||
API Changes
|
||||
---------------------
|
||||
* GITHUB#12578: Deprecate IndexSearcher#getExecutor in favour of executing concurrent tasks using
|
||||
the TaskExecutor that the searcher holds, retrieved via IndexSearcher#getTaskExecutor (Luca Cavanna)
|
||||
|
||||
New Features
|
||||
---------------------
|
||||
|
|
|
@ -95,6 +95,11 @@ Callers should remove the parameter when calling this method.
|
|||
The former `DaciukMihovAutomatonBuilder#build` functionality is exposed through `Automata#makeStringUnion`.
|
||||
Users should be able to directly migrate to the `Automata` static method as a 1:1 replacement.
|
||||
|
||||
### Remove deprecated IndexSearcher#getExecutor (GITHUB#12580)
|
||||
|
||||
The deprecated getter for the `Executor` that was optionally provided to the `IndexSearcher` constructors
|
||||
has been removed. Users that want to execute concurrent tasks should rely instead on the `TaskExecutor`
|
||||
that the searcher holds, retrieved via `IndexSearcher#getTaskExecutor`.
|
||||
|
||||
## Migration from Lucene 9.0 to Lucene 9.1
|
||||
|
||||
|
|
|
@ -946,11 +946,6 @@ public class IndexSearcher {
|
|||
return new CollectionStatistics(field, reader.maxDoc(), docCount, sumTotalTermFreq, sumDocFreq);
|
||||
}
|
||||
|
||||
/** Returns this searchers executor or <code>null</code> if no executor was provided */
|
||||
public Executor getExecutor() {
|
||||
return executor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the {@link TaskExecutor} that this searcher relies on to execute concurrent operations
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue