mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged HEAD-BUG-FIX (5.1/Cloud) to HEAD (5.1/Cloud)
99486: Merged DEREK/BM-0004 (5.1.0.BM4) to HEAD-BUG-FIX (5.1/Cloud) 98804: Part 2: ACE-1021 SOLR 4 - Sharding/Replication/Cluster/Cloud - SOLR 4 - support multiple stores requested via search parameters - explicit federation over a specified set of stores and related SOLR 4 indexes git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@99545 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -68,9 +68,9 @@ public class SearcherComponent extends AbstractSearcherComponent
|
||||
|
||||
public ResultSet query(SearchParameters searchParameters)
|
||||
{
|
||||
if(searchParameters.getStores().size() != 1)
|
||||
if(searchParameters.getStores().size() == 0)
|
||||
{
|
||||
throw new IllegalStateException("Only one store can be searched at present");
|
||||
throw new IllegalStateException("At least one store must be defined to search");
|
||||
}
|
||||
StoreRef storeRef = searchParameters.getStores().get(0);
|
||||
SearchService searcher = indexerAndSearcherFactory.getSearcher(storeRef, !searchParameters.excludeDataInTheCurrentTransaction());
|
||||
|
Reference in New Issue
Block a user