diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-01-28 11:49:57 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-01-29 15:10:25 +0100 |
commit | 948c42302ad04cae02b90ac57b7492bc6a21643e (patch) | |
tree | 4bb40e4cc7d757a0e1f520ee352f4eacdb7bc08c | |
parent | ae73f5350725ea9f0f8e8ccdaef0c0eeb7fd26a9 (diff) | |
download | sonarqube-948c42302ad04cae02b90ac57b7492bc6a21643e.tar.gz sonarqube-948c42302ad04cae02b90ac57b7492bc6a21643e.zip |
SONAR-5953 Fix stickyness of facet and harvest more component UUIDs for ref data
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java b/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java index a29be783eb0..11603bf01d6 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java +++ b/server/sonar-server/src/main/java/org/sonar/server/issue/index/IssueIndex.java @@ -201,7 +201,7 @@ public class IssueIndex extends BaseIndex<Issue, FakeIssueDto, String> { QueryBuilder queryBuilder = QueryBuilders.filteredQuery( QueryBuilders.matchAllQuery(), FilterBuilders.andFilter(projectFilter, dateFilter) - ); + ); getClient().prepareDeleteByQuery(IssueIndexDefinition.INDEX).setQuery(queryBuilder).get(); } @@ -348,7 +348,7 @@ public class IssueIndex extends BaseIndex<Issue, FakeIssueDto, String> { FilterBuilders.boolFilter() .must(groupsAndUser) .cache(true)) - ); + ); } private void addDatesFilter(Map<String, FilterBuilder> filters, IssueQuery query) { @@ -410,7 +410,7 @@ public class IssueIndex extends BaseIndex<Issue, FakeIssueDto, String> { } private void addSimpleStickyFacetIfNeeded(QueryContext options, StickyFacetBuilder stickyFacetBuilder, SearchRequestBuilder esSearch, - String facetName, String fieldName, Object... selectedValues) { + String facetName, String fieldName, Object... selectedValues) { if (options.facets().contains(facetName)) { esSearch.addAggregation(stickyFacetBuilder.buildStickyFacet(fieldName, facetName, DEFAULT_ISSUE_FACET_SIZE, selectedValues)); } @@ -440,7 +440,7 @@ public class IssueIndex extends BaseIndex<Issue, FakeIssueDto, String> { AggregationBuilders .missing(facetName + FACET_SUFFIX_MISSING) .field(fieldName) - ); + ); return AggregationBuilders .global(facetName) @@ -465,7 +465,7 @@ public class IssueIndex extends BaseIndex<Issue, FakeIssueDto, String> { AggregationBuilders .missing(facetName + FACET_SUFFIX_MISSING) .field(fieldName) - ); + ); return AggregationBuilders .global(facetName) @@ -490,7 +490,7 @@ public class IssueIndex extends BaseIndex<Issue, FakeIssueDto, String> { AggregationBuilders .missing(facetName + FACET_SUFFIX_MISSING) .field(fieldName) - ); + ); return AggregationBuilders .global(facetName) |