Package org.apache.lucene.facet.taxonomy

Examples of org.apache.lucene.facet.taxonomy.OrdinalsReader$OrdinalsSegmentReader


  public Facets getTaxonomyFacetCounts(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector c, String indexFieldName) throws IOException {
    Facets facets;
    if (random().nextBoolean()) {
      facets = new FastTaxonomyFacetCounts(indexFieldName, taxoReader, config, c);
    } else {
      OrdinalsReader ordsReader = new DocValuesOrdinalsReader(indexFieldName);
      if (random().nextBoolean()) {
        ordsReader = new CachedOrdinalsReader(ordsReader);
      }
      facets = new TaxonomyFacetCounts(ordsReader, taxoReader, config, c);
    }
View Full Code Here


        try {
            for (Map.Entry<String, FacetConfig> fEntry : summaryConfigValues.entrySet()) {
                FacetConfig facetConfig = fEntry.getValue();
                String facetFieldName = facetConfig.getIndexKey() +
                        SearchManager.FACET_FIELD_SUFFIX;
                OrdinalsReader ordsReader = new DocValuesOrdinalsReader(facetFieldName);
                Facets facets = new TaxonomyFacetCounts(ordsReader, taxonomyReader, facetConfiguration, facetCollector);

                FacetResult facetResults = facets.getTopChildren(facetConfig.getMax(), facetFieldName); // facetConfig.getIndexKey()
                if (facetResults != null) {
                    // Create the XML element for the response
View Full Code Here

  public Facets getTaxonomyFacetCounts(TaxonomyReader taxoReader, FacetsConfig config, FacetsCollector c, String indexFieldName) throws IOException {
    Facets facets;
    if (random().nextBoolean()) {
      facets = new FastTaxonomyFacetCounts(indexFieldName, taxoReader, config, c);
    } else {
      OrdinalsReader ordsReader = new DocValuesOrdinalsReader(indexFieldName);
      if (random().nextBoolean()) {
        ordsReader = new CachedOrdinalsReader(ordsReader);
      }
      facets = new TaxonomyFacetCounts(ordsReader, taxoReader, config, c);
    }
View Full Code Here

TOP

Related Classes of org.apache.lucene.facet.taxonomy.OrdinalsReader$OrdinalsSegmentReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.