A question about FacetField constructor

2014-06-21 Thread west suhanic
Hello All: I am building sample code using lucene v4.8.1 to explore the new facet API. The problem I am having is that if I pass a populated string array nothing gets indexed while if I pass only the first element of the string array that value gets indexed. The code found below shows the case tha

Re: Lucene Facets Module 4.8.1

2014-06-21 Thread Shai Erera
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 On Sat, Jun 21, 2014 at 8:26 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > Are you sure it's the same FacetsConfig at search

Re: Lucene Facets Module 4.8.1

2014-06-21 Thread Michael McCandless
Are you sure it's the same FacetsConfig at search time? Because the exception implies your CITY field didn't have config.setIndexFieldName("CITY", "city") called. Or, can you try commenting out 'config.setIndexFieldName("CITY", "city")' at index time and see if the exception still happens? Mike

Re: EarlyTerminatingSortingCollector help needed..

2014-06-21 Thread Adrien Grand
Hi Ravikumar, On Fri, Jun 20, 2014 at 12:14 PM, Ravikumar Govindarajan wrote: > If my "numDocsToCollect" = 50 and no.of. segments = 15, then > collector.collect() will be called 750 times. That is the worst-case indeed. However if some of your segments have less than 50 matches, `collect` will o