mirror of https://github.com/apache/lucene.git
LUCENE-4761: Facets package reorganization
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1444026 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3be6d4cd61
commit
7f243824d5
|
@ -63,6 +63,9 @@ Changes in backwards compatibility policy
|
|||
FacetsAggregator. You can still use StandardFacetsAccumulator, which works
|
||||
with the old API (for now). (Shai Erera)
|
||||
|
||||
* LUCENE-4761: Facet packages reorganized. Should be easy to fix your import
|
||||
statements, if you use an IDE such as Eclipse. (Shai Erera)
|
||||
|
||||
Optimizations
|
||||
|
||||
* LUCENE-4687: BloomFilterPostingsFormat now lazily initializes delegate
|
||||
|
|
|
@ -2,7 +2,7 @@ package org.apache.lucene.demo.facet;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -10,7 +10,7 @@ import org.apache.lucene.demo.facet.ExampleUtils;
|
|||
import org.apache.lucene.demo.facet.simple.SimpleIndexer;
|
||||
import org.apache.lucene.demo.facet.simple.SimpleSearcher;
|
||||
import org.apache.lucene.facet.search.AdaptiveFacetsAccumulator;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -4,11 +4,11 @@ import java.util.List;
|
|||
|
||||
import org.apache.lucene.demo.facet.ExampleUtils;
|
||||
import org.apache.lucene.demo.facet.simple.SimpleUtils;
|
||||
import org.apache.lucene.facet.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.AdaptiveFacetsAccumulator;
|
||||
import org.apache.lucene.facet.search.CountFacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetsCollector;
|
||||
import org.apache.lucene.facet.search.params.CountFacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyReader;
|
||||
|
|
|
@ -7,7 +7,7 @@ import org.apache.lucene.store.RAMDirectory;
|
|||
|
||||
import org.apache.lucene.demo.facet.ExampleResult;
|
||||
import org.apache.lucene.demo.facet.ExampleUtils;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -7,9 +7,9 @@ import org.apache.lucene.index.IndexReader;
|
|||
import org.apache.lucene.store.Directory;
|
||||
|
||||
import org.apache.lucene.demo.facet.simple.SimpleSearcher;
|
||||
import org.apache.lucene.facet.search.params.associations.AssociationFloatSumFacetRequest;
|
||||
import org.apache.lucene.facet.search.params.associations.AssociationIntSumFacetRequest;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.associations.AssociationFloatSumFacetRequest;
|
||||
import org.apache.lucene.facet.associations.AssociationIntSumFacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyReader;
|
||||
|
|
|
@ -12,9 +12,9 @@ import org.apache.lucene.document.Document;
|
|||
import org.apache.lucene.document.Field;
|
||||
import org.apache.lucene.document.TextField;
|
||||
import org.apache.lucene.facet.index.FacetFields;
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.index.params.PerDimensionIndexingParams;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.PerDimensionIndexingParams;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter;
|
||||
import org.apache.lucene.index.IndexWriter;
|
||||
|
|
|
@ -7,7 +7,7 @@ import org.apache.lucene.store.RAMDirectory;
|
|||
|
||||
import org.apache.lucene.demo.facet.ExampleResult;
|
||||
import org.apache.lucene.demo.facet.ExampleUtils;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -15,12 +15,12 @@ import org.apache.lucene.store.Directory;
|
|||
import org.apache.lucene.search.MultiCollector;
|
||||
import org.apache.lucene.demo.facet.ExampleUtils;
|
||||
import org.apache.lucene.demo.facet.simple.SimpleUtils;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.CountFacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetsCollector;
|
||||
import org.apache.lucene.facet.search.params.CountFacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyReader;
|
||||
|
|
|
@ -9,7 +9,7 @@ import org.apache.lucene.store.RAMDirectory;
|
|||
|
||||
import org.apache.lucene.demo.facet.ExampleResult;
|
||||
import org.apache.lucene.demo.facet.ExampleUtils;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyReader;
|
||||
|
||||
|
|
|
@ -4,14 +4,14 @@ import java.util.Iterator;
|
|||
import java.util.List;
|
||||
|
||||
import org.apache.lucene.demo.facet.ExampleUtils;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.CountFacetRequest;
|
||||
import org.apache.lucene.facet.search.DrillDown;
|
||||
import org.apache.lucene.facet.search.FacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResultNode;
|
||||
import org.apache.lucene.facet.search.FacetsCollector;
|
||||
import org.apache.lucene.facet.search.params.CountFacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.results.FacetResultNode;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
|
|
@ -5,7 +5,7 @@ import org.junit.Test;
|
|||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.demo.facet.ExampleResult;
|
||||
import org.apache.lucene.demo.facet.association.CategoryAssociationsMain;
|
||||
import org.apache.lucene.facet.search.results.FacetResultNode;
|
||||
import org.apache.lucene.facet.search.FacetResultNode;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -8,8 +8,8 @@ import org.junit.Test;
|
|||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.demo.facet.ExampleResult;
|
||||
import org.apache.lucene.demo.facet.multiCL.MultiCLMain;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.results.FacetResultNode;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResultNode;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -7,8 +7,8 @@ import org.junit.Test;
|
|||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.demo.facet.ExampleResult;
|
||||
import org.apache.lucene.demo.facet.simple.SimpleMain;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.results.FacetResultNode;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResultNode;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -1,46 +0,0 @@
|
|||
package org.apache.lucene.facet;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A parent class for exceptions thrown by the Facets code.
|
||||
*
|
||||
* @lucene.experimental
|
||||
*/
|
||||
public class FacetException extends IOException {
|
||||
|
||||
public FacetException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public FacetException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public FacetException(String message, Throwable cause) {
|
||||
super(message);
|
||||
initCause(cause);
|
||||
}
|
||||
|
||||
public FacetException(Throwable cause) {
|
||||
initCause(cause);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,14 +1,12 @@
|
|||
package org.apache.lucene.facet.search.aggregator.associations;
|
||||
package org.apache.lucene.facet.associations;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.associations.CategoryFloatAssociation;
|
||||
import org.apache.lucene.facet.associations.FloatAssociationsIterator;
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.search.aggregator.Aggregator;
|
||||
import org.apache.lucene.facet.collections.IntToFloatMap;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.search.Aggregator;
|
||||
import org.apache.lucene.index.AtomicReaderContext;
|
||||
import org.apache.lucene.util.IntsRef;
|
||||
import org.apache.lucene.util.collections.IntToFloatMap;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,11 +1,10 @@
|
|||
package org.apache.lucene.facet.search.params.associations;
|
||||
package org.apache.lucene.facet.associations;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.search.Aggregator;
|
||||
import org.apache.lucene.facet.search.FacetArrays;
|
||||
import org.apache.lucene.facet.search.aggregator.Aggregator;
|
||||
import org.apache.lucene.facet.search.aggregator.associations.AssociationFloatSumAggregator;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetRequest;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
|
|
@ -1,14 +1,12 @@
|
|||
package org.apache.lucene.facet.search.aggregator.associations;
|
||||
package org.apache.lucene.facet.associations;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.associations.CategoryIntAssociation;
|
||||
import org.apache.lucene.facet.associations.IntAssociationsIterator;
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.search.aggregator.Aggregator;
|
||||
import org.apache.lucene.facet.collections.IntToIntMap;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.search.Aggregator;
|
||||
import org.apache.lucene.index.AtomicReaderContext;
|
||||
import org.apache.lucene.util.IntsRef;
|
||||
import org.apache.lucene.util.collections.IntToIntMap;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,12 +1,10 @@
|
|||
package org.apache.lucene.facet.search.params.associations;
|
||||
package org.apache.lucene.facet.associations;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.search.Aggregator;
|
||||
import org.apache.lucene.facet.search.FacetArrays;
|
||||
import org.apache.lucene.facet.search.aggregator.Aggregator;
|
||||
import org.apache.lucene.facet.search.aggregator.associations.AssociationFloatSumAggregator;
|
||||
import org.apache.lucene.facet.search.aggregator.associations.AssociationIntSumAggregator;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetRequest;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
|
|
@ -1,9 +1,10 @@
|
|||
package org.apache.lucene.facet.associations.search;
|
||||
package org.apache.lucene.facet.associations;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.search.FacetArrays;
|
||||
import org.apache.lucene.facet.search.FacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetsAggregator;
|
||||
import org.apache.lucene.facet.search.FacetsCollector.MatchingDocs;
|
||||
|
||||
|
@ -35,8 +36,8 @@ public class AssociationIntSumFacetsAggregator implements FacetsAggregator {
|
|||
FacetArrays facetArrays) throws IOException {}
|
||||
|
||||
@Override
|
||||
public void rollupValues(int ordinal, int[] children, int[] siblings,
|
||||
FacetArrays facetArrays) {}
|
||||
public void rollupValues(FacetRequest fr, int ordinal, int[] children,
|
||||
int[] siblings, FacetArrays facetArrays) {}
|
||||
|
||||
@Override
|
||||
public boolean requiresDocScores() {
|
|
@ -2,7 +2,7 @@ package org.apache.lucene.facet.associations;
|
|||
|
||||
import org.apache.lucene.analysis.tokenattributes.PayloadAttribute;
|
||||
import org.apache.lucene.facet.index.DrillDownStream;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.store.ByteArrayDataOutput;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
|
|
|
@ -10,8 +10,8 @@ import org.apache.lucene.document.TextField;
|
|||
import org.apache.lucene.facet.index.CountingListBuilder;
|
||||
import org.apache.lucene.facet.index.DrillDownStream;
|
||||
import org.apache.lucene.facet.index.FacetFields;
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyWriter;
|
||||
import org.apache.lucene.index.FieldInfo.IndexOptions;
|
||||
|
|
|
@ -2,7 +2,7 @@ package org.apache.lucene.facet.associations;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.util.collections.IntToFloatMap;
|
||||
import org.apache.lucene.facet.collections.IntToFloatMap;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -2,7 +2,7 @@ package org.apache.lucene.facet.associations;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.util.collections.IntToIntMap;
|
||||
import org.apache.lucene.facet.collections.IntToIntMap;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -19,11 +19,7 @@
|
|||
<title>Category Association</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Category Association</h1>
|
||||
|
||||
Allows association of arbitrary values with a category. The value can be used e.g. to compute
|
||||
the category's weight during faceted search. Two association implementations exist for
|
||||
{@link org.apache.lucene.facet.associations.CategoryIntAssociation int} and
|
||||
{@link org.apache.lucene.facet.associations.CategoryFloatAssociation float} values.
|
||||
Allows associating arbitrary values with a category. The value can be used e.g. to compute
|
||||
the category's weight during faceted search.
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.collections;
|
||||
package org.apache.lucene.facet.collections;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Iterator;
|
|
@ -16,9 +16,9 @@
|
|||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Collections</title>
|
||||
<title>Facets Collections</title>
|
||||
</head>
|
||||
<body>
|
||||
Various optimized Collections implementations.
|
||||
Various optimized Collections implementations.
|
||||
</body>
|
||||
</html>
|
|
@ -1,7 +1,8 @@
|
|||
package org.apache.lucene.facet.search.aggregator;
|
||||
package org.apache.lucene.facet.complements;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.search.CountingAggregator;
|
||||
import org.apache.lucene.util.IntsRef;
|
||||
|
||||
/*
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.facet.search;
|
||||
package org.apache.lucene.facet.complements;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
|
@ -11,13 +11,16 @@ import java.io.IOException;
|
|||
import java.util.HashMap;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.search.aggregator.Aggregator;
|
||||
import org.apache.lucene.facet.search.aggregator.CountingAggregator;
|
||||
import org.apache.lucene.facet.search.params.CountFacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.Aggregator;
|
||||
import org.apache.lucene.facet.search.CategoryListIterator;
|
||||
import org.apache.lucene.facet.search.CountFacetRequest;
|
||||
import org.apache.lucene.facet.search.CountingAggregator;
|
||||
import org.apache.lucene.facet.search.FacetArrays;
|
||||
import org.apache.lucene.facet.search.FacetRequest;
|
||||
import org.apache.lucene.facet.search.StandardFacetsAccumulator;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.facet.util.PartitionsUtils;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.facet.search;
|
||||
package org.apache.lucene.facet.complements;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
@ -7,8 +7,8 @@ import java.util.LinkedHashMap;
|
|||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
|
@ -16,13 +16,12 @@
|
|||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Indexing-time specifications for handling facets</title>
|
||||
<title>Facets Complements counting</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Indexing-time specifications for handling facets</h1>
|
||||
|
||||
Parameters on how facets are to be written to the index,
|
||||
such as which fields and terms are used to refer to the facets posting list.
|
||||
|
||||
Allows to cache the total counts of categories, so that during search which
|
||||
returns a large number of results (>60% of segment size), the complement set
|
||||
of matching documents is counted. Useful for queries that visit a large
|
||||
number of documents, e.g. overview queries.
|
||||
</body>
|
||||
</html>
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.ArrayUtil;
|
||||
import org.apache.lucene.util.BytesRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
|
||||
/*
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.ArrayUtil;
|
||||
import org.apache.lucene.util.BytesRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.ArrayUtil;
|
||||
import org.apache.lucene.util.BytesRef;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.util.encoding;
|
||||
package org.apache.lucene.facet.encoding;
|
||||
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
|
@ -16,11 +16,9 @@
|
|||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Category Association</title>
|
||||
<title>Facets Encoding</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Category Association</h1>
|
||||
|
||||
Associations search code
|
||||
Offers various encoders and decoders for category ordinals.
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
|
@ -7,15 +7,15 @@ import java.util.Iterator;
|
|||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams.OrdinalPolicy;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.encoding.IntEncoder;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.CategoryListParams.OrdinalPolicy;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyWriter;
|
||||
import org.apache.lucene.facet.util.PartitionsUtils;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
||||
import org.apache.lucene.util.encoding.IntEncoder;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -5,7 +5,7 @@ import java.util.Iterator;
|
|||
|
||||
import org.apache.lucene.analysis.TokenStream;
|
||||
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
|
||||
/*
|
||||
|
|
|
@ -13,8 +13,8 @@ import org.apache.lucene.document.Document;
|
|||
import org.apache.lucene.document.Field;
|
||||
import org.apache.lucene.document.FieldType;
|
||||
import org.apache.lucene.document.TextField;
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyWriter;
|
||||
import org.apache.lucene.index.FieldInfo.IndexOptions;
|
||||
|
|
|
@ -16,16 +16,10 @@
|
|||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Indexing of document categories</title>
|
||||
<title>Facets indexing code</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Indexing of document categories</h1>
|
||||
|
||||
Attachment of
|
||||
{@link org.apache.lucene.facet.taxonomy.CategoryPath CategoryPath}'s
|
||||
or {@link org.apache.lucene.facet.associations.CategoryAssociation CategoryAssociation}'s
|
||||
to a given document using a
|
||||
{@link org.apache.lucene.facet.taxonomy.TaxonomyWriter Taxonomy}.
|
||||
Facets indexing code.
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,24 +0,0 @@
|
|||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Faceted Indexing and Search</title>
|
||||
</head>
|
||||
<body>
|
||||
Provides faceted indexing and search capabilities. The <a href="doc-files/userguide.html">userguide</a> is recommended for a start.
|
||||
</body>
|
||||
</html>
|
|
@ -1,16 +1,16 @@
|
|||
package org.apache.lucene.facet.index.params;
|
||||
package org.apache.lucene.facet.params;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.encoding.DGapVInt8IntEncoder;
|
||||
import org.apache.lucene.facet.encoding.IntDecoder;
|
||||
import org.apache.lucene.facet.encoding.IntEncoder;
|
||||
import org.apache.lucene.facet.encoding.SortingIntEncoder;
|
||||
import org.apache.lucene.facet.encoding.UniqueValuesIntEncoder;
|
||||
import org.apache.lucene.facet.search.CategoryListIterator;
|
||||
import org.apache.lucene.facet.search.DocValuesCategoryListIterator;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.util.PartitionsUtils;
|
||||
import org.apache.lucene.util.encoding.DGapVInt8IntEncoder;
|
||||
import org.apache.lucene.util.encoding.IntDecoder;
|
||||
import org.apache.lucene.util.encoding.IntEncoder;
|
||||
import org.apache.lucene.util.encoding.SortingIntEncoder;
|
||||
import org.apache.lucene.util.encoding.UniqueValuesIntEncoder;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,9 +1,9 @@
|
|||
package org.apache.lucene.facet.index.params;
|
||||
package org.apache.lucene.facet.params;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams.OrdinalPolicy;
|
||||
import org.apache.lucene.facet.params.CategoryListParams.OrdinalPolicy;
|
||||
import org.apache.lucene.facet.search.FacetArrays;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
package org.apache.lucene.facet.search.params;
|
||||
package org.apache.lucene.facet.params;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.search.FacetRequest;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.facet.index.params;
|
||||
package org.apache.lucene.facet.params;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.facet.index.params;
|
||||
package org.apache.lucene.facet.params;
|
||||
|
||||
import java.util.Map;
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
|
@ -15,8 +14,12 @@
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<html><head></head>
|
||||
<html>
|
||||
<head>
|
||||
<title>Facets indexing and search parameters</title>
|
||||
</head>
|
||||
<body>
|
||||
Association-based Parameters for Faceted Search.
|
||||
Facets indexing and search parameters. Define how facets are indexed
|
||||
as well as which categories need to be aggregated.
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
|
@ -1,8 +1,8 @@
|
|||
package org.apache.lucene.facet.partitions.search;
|
||||
package org.apache.lucene.facet.partitions;
|
||||
|
||||
import org.apache.lucene.facet.search.FacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResultsHandler;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,14 +1,14 @@
|
|||
package org.apache.lucene.facet.partitions.search;
|
||||
package org.apache.lucene.facet.partitions;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.search.FacetArrays;
|
||||
import org.apache.lucene.facet.search.FacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResultNode;
|
||||
import org.apache.lucene.facet.search.FacetResultsHandler;
|
||||
import org.apache.lucene.facet.search.ScoredDocIDs;
|
||||
import org.apache.lucene.facet.search.StandardFacetsAccumulator;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.results.FacetResultNode;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
|
||||
/*
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.facet.search.sampling;
|
||||
package org.apache.lucene.facet.sampling;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Random;
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.facet.search.sampling;
|
||||
package org.apache.lucene.facet.sampling;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Arrays;
|
|
@ -1,9 +1,9 @@
|
|||
package org.apache.lucene.facet.search.sampling;
|
||||
package org.apache.lucene.facet.sampling;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.ScoredDocIDs;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,16 +1,16 @@
|
|||
package org.apache.lucene.facet.search.sampling;
|
||||
package org.apache.lucene.facet.sampling;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.lucene.facet.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.Aggregator;
|
||||
import org.apache.lucene.facet.search.FacetArrays;
|
||||
import org.apache.lucene.facet.search.FacetRequest;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResultNode;
|
||||
import org.apache.lucene.facet.search.ScoredDocIDs;
|
||||
import org.apache.lucene.facet.search.aggregator.Aggregator;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.results.FacetResultNode;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
|
@ -1,18 +1,17 @@
|
|||
package org.apache.lucene.facet.search.sampling;
|
||||
package org.apache.lucene.facet.sampling;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.lucene.facet.partitions.search.PartitionsFacetResultsHandler;
|
||||
import org.apache.lucene.facet.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.partitions.PartitionsFacetResultsHandler;
|
||||
import org.apache.lucene.facet.sampling.Sampler.SampleResult;
|
||||
import org.apache.lucene.facet.search.FacetArrays;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetsAccumulator;
|
||||
import org.apache.lucene.facet.search.SamplingWrapper;
|
||||
import org.apache.lucene.facet.search.ScoredDocIDs;
|
||||
import org.apache.lucene.facet.search.StandardFacetsAccumulator;
|
||||
import org.apache.lucene.facet.search.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.sampling.Sampler.SampleResult;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.facet.search.sampling;
|
||||
package org.apache.lucene.facet.sampling;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,14 +1,15 @@
|
|||
package org.apache.lucene.facet.search;
|
||||
package org.apache.lucene.facet.sampling;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.lucene.facet.partitions.search.PartitionsFacetResultsHandler;
|
||||
import org.apache.lucene.facet.search.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.sampling.Sampler;
|
||||
import org.apache.lucene.facet.search.sampling.Sampler.SampleResult;
|
||||
import org.apache.lucene.facet.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.partitions.PartitionsFacetResultsHandler;
|
||||
import org.apache.lucene.facet.sampling.Sampler.SampleResult;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.ScoredDocIDs;
|
||||
import org.apache.lucene.facet.search.StandardFacetsAccumulator;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.facet.search.sampling;
|
||||
package org.apache.lucene.facet.sampling;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
@ -9,12 +9,12 @@ import org.apache.lucene.index.DocsEnum;
|
|||
import org.apache.lucene.search.DocIdSetIterator;
|
||||
import org.apache.lucene.util.Bits;
|
||||
|
||||
import org.apache.lucene.facet.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.DrillDown;
|
||||
import org.apache.lucene.facet.search.FacetResult;
|
||||
import org.apache.lucene.facet.search.FacetResultNode;
|
||||
import org.apache.lucene.facet.search.ScoredDocIDs;
|
||||
import org.apache.lucene.facet.search.ScoredDocIDsIterator;
|
||||
import org.apache.lucene.facet.search.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.results.FacetResultNode;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
|
|
@ -15,7 +15,10 @@
|
|||
limitations under the License.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>Facets sampling</title>
|
||||
</head>
|
||||
<body>
|
||||
Low-level faceting utilities.
|
||||
Facets sampling.
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
|
@ -3,11 +3,10 @@ package org.apache.lucene.facet.search;
|
|||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.lucene.facet.search.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.sampling.RandomSampler;
|
||||
import org.apache.lucene.facet.search.sampling.Sampler;
|
||||
import org.apache.lucene.facet.search.sampling.SamplingAccumulator;
|
||||
import org.apache.lucene.facet.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.sampling.RandomSampler;
|
||||
import org.apache.lucene.facet.sampling.Sampler;
|
||||
import org.apache.lucene.facet.sampling.SamplingAccumulator;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.facet.search.aggregator;
|
||||
package org.apache.lucene.facet.search;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
@ -1,9 +1,6 @@
|
|||
package org.apache.lucene.facet.search.params;
|
||||
package org.apache.lucene.facet.search;
|
||||
|
||||
import org.apache.lucene.facet.search.FacetArrays;
|
||||
import org.apache.lucene.facet.search.aggregator.Aggregator;
|
||||
import org.apache.lucene.facet.search.aggregator.ComplementCountingAggregator;
|
||||
import org.apache.lucene.facet.search.aggregator.CountingAggregator;
|
||||
import org.apache.lucene.facet.complements.ComplementCountingAggregator;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package org.apache.lucene.facet.search.aggregator;
|
||||
package org.apache.lucene.facet.search;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
@ -2,7 +2,7 @@ package org.apache.lucene.facet.search;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.search.FacetsCollector.MatchingDocs;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.util.IntsRef;
|
||||
|
@ -70,7 +70,7 @@ public class CountingFacetsAggregator implements FacetsAggregator {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void rollupValues(int ordinal, int[] children, int[] siblings, FacetArrays facetArrays) {
|
||||
public void rollupValues(FacetRequest fr, int ordinal, int[] children, int[] siblings, FacetArrays facetArrays) {
|
||||
final int[] counts = facetArrays.getIntArray();
|
||||
counts[ordinal] += rollupCounts(children[ordinal], children, siblings, counts);
|
||||
}
|
||||
|
|
|
@ -6,11 +6,8 @@ import java.util.Arrays;
|
|||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest.SortBy;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest.SortOrder;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.search.results.FacetResultNode;
|
||||
import org.apache.lucene.facet.search.FacetRequest.SortBy;
|
||||
import org.apache.lucene.facet.search.FacetRequest.SortOrder;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
import org.apache.lucene.facet.taxonomy.directory.ParallelTaxonomyArrays;
|
||||
import org.apache.lucene.util.PriorityQueue;
|
||||
|
|
|
@ -2,11 +2,11 @@ package org.apache.lucene.facet.search;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.encoding.IntDecoder;
|
||||
import org.apache.lucene.index.AtomicReaderContext;
|
||||
import org.apache.lucene.index.BinaryDocValues;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.apache.lucene.util.IntsRef;
|
||||
import org.apache.lucene.util.encoding.IntDecoder;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -7,9 +7,9 @@ import org.apache.lucene.search.Query;
|
|||
import org.apache.lucene.search.TermQuery;
|
||||
import org.apache.lucene.search.BooleanClause.Occur;
|
||||
|
||||
import org.apache.lucene.facet.index.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.index.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.search.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.params.CategoryListParams;
|
||||
import org.apache.lucene.facet.params.FacetIndexingParams;
|
||||
import org.apache.lucene.facet.params.FacetSearchParams;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
package org.apache.lucene.facet.search.params;
|
||||
package org.apache.lucene.facet.search;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.search.FacetArrays;
|
||||
import org.apache.lucene.facet.search.FacetResultsHandler;
|
||||
import org.apache.lucene.facet.search.aggregator.Aggregator;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
package org.apache.lucene.facet.search.results;
|
||||
package org.apache.lucene.facet.search;
|
||||
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
|
||||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
@ -1,11 +1,9 @@
|
|||
package org.apache.lucene.facet.search.results;
|
||||
package org.apache.lucene.facet.search;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.lucene.facet.search.params.CountFacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.params.FacetRequest.ResultMode;
|
||||
import org.apache.lucene.facet.search.FacetRequest.ResultMode;
|
||||
import org.apache.lucene.facet.taxonomy.CategoryPath;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
|
|
@ -2,8 +2,6 @@ package org.apache.lucene.facet.search;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.lucene.facet.search.params.FacetRequest;
|
||||
import org.apache.lucene.facet.search.results.FacetResult;
|
||||
import org.apache.lucene.facet.taxonomy.TaxonomyReader;
|
||||
|
||||
/*
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue