mirror of
https://github.com/apache/lucene.git
synced 2025-02-06 01:58:44 +00:00
SOLR-557: added getSearchComponents()
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@652846 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
68b8d7cf7f
commit
72869fb61d
@ -249,6 +249,8 @@ New Features
|
||||
|
||||
45. SOLR-521: StopFilterFactory support for "enablePositionIncrements"
|
||||
(Walter Ferrara via hossman)
|
||||
|
||||
46. SOLR-557: Added SolrCore.getSearchComponents() to return an unmodifiable Map. (gsingers)
|
||||
|
||||
Changes in runtime behavior
|
||||
|
||||
|
@ -23,6 +23,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Collections;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
@ -599,7 +600,15 @@ public final class SolrCore {
|
||||
}
|
||||
return component;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Accessor for all the Search Components
|
||||
* @return An unmodifiable Map of Search Components
|
||||
*/
|
||||
public Map<String, SearchComponent> getSearchComponents() {
|
||||
return Collections.unmodifiableMap(searchComponents);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Update Handler
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user