You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2013/01/21 12:21:54 UTC
svn commit: r1436277 [2/2] - in /lucene/dev/trunk/lucene: ./
facet/src/examples/org/apache/lucene/facet/example/simple/
facet/src/java/org/apache/lucene/facet/search/
facet/src/java/org/apache/lucene/facet/search/results/
facet/src/java/org/apache/luce...
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/OversampleWithDepthTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/OversampleWithDepthTest.java?rev=1436277&r1=1436276&r2=1436277&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/OversampleWithDepthTest.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/OversampleWithDepthTest.java Mon Jan 21 11:21:53 2013
@@ -85,10 +85,8 @@ public class OversampleWithDepthTest ext
FacetResultNode rootNode = res.getFacetResultNode();
// Each node below root should also have sub-results as the requested depth was '2'
- for (FacetResultNode node : rootNode.getSubResults()) {
- assertTrue("node " + node.getLabel()
- + " should have had children as the requested depth was '2'",
- node.getNumSubResults() > 0);
+ for (FacetResultNode node : rootNode.subResults) {
+ assertTrue("node " + node.label + " should have had children as the requested depth was '2'", node.subResults.size() > 0);
}
IOUtils.close(r, tr, indexDir, taxoDir);
Modified: lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/SamplingAccumulatorTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/SamplingAccumulatorTest.java?rev=1436277&r1=1436276&r2=1436277&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/SamplingAccumulatorTest.java (original)
+++ lucene/dev/trunk/lucene/facet/src/test/org/apache/lucene/facet/search/sampling/SamplingAccumulatorTest.java Mon Jan 21 11:21:53 2013
@@ -28,10 +28,8 @@ import org.apache.lucene.facet.taxonomy.
public class SamplingAccumulatorTest extends BaseSampleTestTopK {
@Override
- protected FacetsAccumulator getSamplingAccumulator(Sampler sampler,
- TaxonomyReader taxoReader, IndexReader indexReader,
- FacetSearchParams searchParams) {
- return new SamplingAccumulator(sampler, searchParams, indexReader,
- taxoReader);
+ protected FacetsAccumulator getSamplingAccumulator(Sampler sampler, TaxonomyReader taxoReader,
+ IndexReader indexReader, FacetSearchParams searchParams) {
+ return new SamplingAccumulator(sampler, searchParams, indexReader, taxoReader);
}
}