Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
javanna committed Mar 25, 2022
1 parent 5242e93 commit 6a6c122
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ public void testRandomSingleValued() throws Exception {
System.out.println(" test id range " + minId + "-" + maxId);
}

FacetsCollector fc = s.search(IntPoint.newRangeQuery("id", minId, maxId), new FacetsCollectorManager());
FacetsCollector fc =
s.search(IntPoint.newRangeQuery("id", minId, maxId), new FacetsCollectorManager());
if (random().nextBoolean()) {
if (VERBOSE) {
System.out.println(" use doc values");
Expand Down Expand Up @@ -571,7 +572,8 @@ public void testRandomMultiValued() throws Exception {
System.out.println(" test id range " + minId + "-" + maxId);
}

FacetsCollector fc = s.search(IntPoint.newRangeQuery("id", minId, maxId), new FacetsCollectorManager());
FacetsCollector fc =
s.search(IntPoint.newRangeQuery("id", minId, maxId), new FacetsCollectorManager());
if (random().nextBoolean()) {
facetCounts = new LongValueFacetCounts("field", fc);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@ public void testStaleState() throws Exception {
try (IndexReader r2 = writer.getReader()) {
IndexSearcher searcher = newSearcher(r2);

FacetsCollector c = searcher.search(new MatchAllDocsQuery(), new FacetsCollectorManager());
FacetsCollector c =
searcher.search(new MatchAllDocsQuery(), new FacetsCollectorManager());

expectThrows(
IllegalStateException.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ public void run() {
SearcherAndTaxonomy pair = mgr.acquire();
try {
// System.out.println("search maxOrd=" + pair.taxonomyReader.getSize());
FacetsCollector sfc = pair.searcher.search(new MatchAllDocsQuery(), new FacetsCollectorManager());
FacetsCollector sfc =
pair.searcher.search(new MatchAllDocsQuery(), new FacetsCollectorManager());
Facets facets = getTaxonomyFacetCounts(pair.taxonomyReader, config, sfc);
FacetResult result = facets.getTopChildren(10, "field");
if (pair.searcher.getIndexReader().numDocs() > 0) {
Expand Down Expand Up @@ -239,7 +240,8 @@ public void testDirectory() throws Exception {
SearcherAndTaxonomy pair = mgr.acquire();
try {
// System.out.println("search maxOrd=" + pair.taxonomyReader.getSize());
FacetsCollector sfc = pair.searcher.search(new MatchAllDocsQuery(), new FacetsCollectorManager());
FacetsCollector sfc =
pair.searcher.search(new MatchAllDocsQuery(), new FacetsCollectorManager());
Facets facets = getTaxonomyFacetCounts(pair.taxonomyReader, config, sfc);
FacetResult result = facets.getTopChildren(10, "field");
if (pair.searcher.getIndexReader().numDocs() > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ public void testSeparateIndexedFields() throws Exception {
DirectoryReader r = DirectoryReader.open(iw);
DirectoryTaxonomyReader taxoReader = new DirectoryTaxonomyReader(taxoWriter);

FacetsCollector sfc = newSearcher(r).search(new MatchAllDocsQuery(), new FacetsCollectorManager());
FacetsCollector sfc =
newSearcher(r).search(new MatchAllDocsQuery(), new FacetsCollectorManager());
Facets facets1 = getTaxonomyFacetCounts(taxoReader, config, sfc);
Facets facets2 = getTaxonomyFacetCounts(taxoReader, config, sfc, "$b");
assertEquals(r.maxDoc(), facets1.getTopChildren(10, "a").value.intValue());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ public void testNoScore() throws Exception {
DirectoryReader r = DirectoryReader.open(iw);
DirectoryTaxonomyReader taxoReader = new DirectoryTaxonomyReader(taxoWriter);

FacetsCollector sfc = newSearcher(r).search(new MatchAllDocsQuery(), new FacetsCollectorManager());
FacetsCollector sfc =
newSearcher(r).search(new MatchAllDocsQuery(), new FacetsCollectorManager());
Facets facets =
new TaxonomyFacetSumValueSource(
taxoReader, config, sfc, DoubleValuesSource.fromLongField("price"));
Expand Down Expand Up @@ -367,7 +368,8 @@ public void testRollupValues() throws Exception {
DirectoryReader r = DirectoryReader.open(iw);
DirectoryTaxonomyReader taxoReader = new DirectoryTaxonomyReader(taxoWriter);

FacetsCollector sfc = newSearcher(r).search(new MatchAllDocsQuery(), new FacetsCollectorManager());
FacetsCollector sfc =
newSearcher(r).search(new MatchAllDocsQuery(), new FacetsCollectorManager());
Facets facets =
new TaxonomyFacetSumValueSource(
taxoReader, config, sfc, DoubleValuesSource.fromLongField("price"));
Expand Down

0 comments on commit 6a6c122

Please sign in to comment.