From f0c56ce18eafa9bbf08a30bbcca1db6aebdfd398 Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 6 Jun 2010 03:14:34 +0300 Subject: [PATCH] nicer code, internalize Facets and create a clean external interface --- .../Elastic_Search_Tests.xml | 2 +- .../AbstractListenableActionFuture.java | 5 +- .../cluster/metadata/MetaData.java | 3 +- .../routing/IndexShardRoutingTable.java | 3 +- .../zen/elect/ElectMasterService.java | 4 +- .../index/gateway/fs/FsIndexShardGateway.java | 4 +- .../controller/SearchPhaseController.java | 8 +- .../elasticsearch/search/facets/Facet.java | 42 ++++- .../elasticsearch/search/facets/Facets.java | 116 +------------ .../search/facets/FacetsPhase.java | 3 +- .../facets/{ => internal}/InternalFacet.java | 3 +- .../facets/internal/InternalFacets.java | 157 ++++++++++++++++++ .../facets/query/InternalQueryFacet.java | 2 +- .../statistical/InternalStatisticalFacet.java | 2 +- .../facets/terms/InternalTermsFacet.java | 2 +- .../internal/InternalSearchResponse.java | 8 +- .../search/query/QuerySearchResult.java | 8 +- 17 files changed, 230 insertions(+), 142 deletions(-) rename modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/{ => internal}/InternalFacet.java (93%) create mode 100644 modules/elasticsearch/src/main/java/org/elasticsearch/search/facets/internal/InternalFacets.java diff --git a/.idea/runConfigurations/Elastic_Search_Tests.xml b/.idea/runConfigurations/Elastic_Search_Tests.xml index af5ef13bebc..40d12d65d0f 100644 --- a/.idea/runConfigurations/Elastic_Search_Tests.xml +++ b/.idea/runConfigurations/Elastic_Search_Tests.xml @@ -32,7 +32,7 @@