Re: Lucene Facets Module 4.8.1

2014-06-22 Thread Jigar Shah
Thanks very much for help. Ok, so i believe my rest of the code is correct, i just need to "Initialize a FacetsCounts per indexFieldName" How do i do this, is there some TestCase, or some sample code available ? Thanks, On Sun, Jun 22, 2014 at 10:05 PM, Shai Erera wrote: > OK I see. I t

Re: Lucene Facets Module 4.8.1

2014-06-22 Thread Jigar Shah
FacetsConfig Object is same. (indexConfig == searchConfig) returns true. On Sat, Jun 21, 2014 at 11:01 PM, Shai Erera wrote: > If you can, while in debug mode try to note the instance ID of the > FacetsConfig, and assert it is indeed the same (i.e. indexConfig == > searchConfig). > > Shai > >

Re: Lucene Facets Module 4.8.1

2014-06-22 Thread Jigar Shah
On commenting //config.setIndexFieldName("CITY", "city"); at search time, this is before i do, getTopChildren(...) I get following exception. Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 at org.apache.lucene.facet.taxonomy.FastTaxonomyFacetCounts.count(FastTaxonomyFacetCounts.java:

Re: A question about FacetField constructor

2014-06-22 Thread Shai Erera
Reply wasn't sent to the list. On Jun 22, 2014 8:15 PM, "Shai Erera" wrote: > Can you post an example which demonstrates the problem? It's also > interesting how you count the facets, eg do you use a TaxonomyFacets object > or something else? > > Have you looked at the facet demo code? It contain

Re: A question about FacetField constructor

2014-06-22 Thread west suhanic
Hello: >What do you mean by does not index anything? When I do a search the value returned for the "dim" set to "Publish Date" is null. If I pass through value[0] the publish date year is returned by the search. setHierarchical was called. When a String[] with more than one element is passed an

Re: EarlyTerminatingSortingCollector help needed..

2014-06-22 Thread Ravikumar Govindarajan
Thanks for your reply & clarifications What do you mean by "When I use a SortField instead"? Unless you are > using early termination, Collector.collect is supposed to be called > for every matching document For a normal sorting-query, on a top-level searcher, I execute TopDocs docs = searcher

Re: Lucene Facets Module 4.8.1

2014-06-22 Thread Shai Erera
OK I see. I think the code works OK though. It documents that you should call the other constructor if you specify a custom indexFieldName for some of the dimensions. Currently if you index dimensions under different indexFieldNames, you should initialize a FacetsCounts per indexFieldName. There's

Re: Lucene Facets Module 4.8.1

2014-06-22 Thread Jigar Shah
I will try to dig more on your suggestions, and also assert FacetsConfig object. While debugging i found, buildFacetsResult(...) method from DrillSideways.java Its internally invoking following constructor from FastTaxonomyFacetCounts.java FastTaxonomyFacetCounts() { this(FacetsConfig.DEFAUL

AW: fuzzy/case insensitive AnalyzingSuggester )

2014-06-22 Thread Clemens Wyss DEV
Oli, thanks for your valuable inputs! > Generally, we found it beneficial to not combine all functionality in a > single suggester Makes absolutely sense, but doesn't help keeping RAM-load low ;) unless you go with WFSTs. What we have done so far is build a term-index based on the terms of th

Re: A question about FacetField constructor

2014-06-22 Thread Shai Erera
What do you mean by does not index anything? Do you get an exception when you add a String[] with more than one element? You should probably call conf.setHierarchical(dimension), but if you don't do that you should receive an IllegalArgumentException telling you to do that... Shai On Sun, Jun 2