This usually means that your IndexReader and TaxonomyReader are out of
sync. That is, the IndexReader sees category ordinals that the
TaxonomyReader does not yet see.

Do you use SearcherTaxonomyManager in your application? It ensures that the
two are always in sync, i.e. reopened together and that your application
always sees a consistent view of the two.

Shai

On Tue, Oct 7, 2014 at 10:03 AM, Jigar Shah <jigaronl...@gmail.com> wrote:

> Intermittently while search i am getting this exception on huge index.
> (FacetsConfig used while indexing and searching is same.)
>
> java.lang.ArrayIndexOutOfBoundsException: 252554
> 06:28:37,954 ERROR [stderr] at
>
> org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts.count(FastTaxonomyFacetCounts.java:73)
> 06:28:37,954 ERROR [stderr] at
>
> org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts.<init>(FastTaxonomyFacetCounts.java:49)
> 06:28:37,954 ERROR [stderr] at
>
> org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts.<init>(FastTaxonomyFacetCounts.java:39)
> 06:28:37,954 ERROR [stderr] at
>
> com.company.search.CustomDrillSideways.buildFacetsResult(LuceneDrillSideways.java:41)
> 06:28:37,954 ERROR [stderr] at
> org.apache.lucene.facet.DrillSideways.search(DrillSideways.java:146)
> 06:28:37,955 ERROR [stderr] at
> org.apache.lucene.facet.DrillSideways.search(DrillSideways.java:203)
>
> Thanks,
> Jigar Shah
>

Reply via email to