Re: Numeric Ranges Faceting

2017-02-20 Thread Michael McCandless
Great! Thank you for bringing closure. Mike McCandless http://blog.mikemccandless.com On Mon, Feb 20, 2017 at 3:41 AM, Chitra R wrote: > Hey, I got it. Thank you so much. > > On Sat, Feb 18, 2017 at 5:33 PM, Michael McCandless > wrote: >> >> You'll need to make your own buildFacetResults met

Re: Numeric Ranges Faceting

2017-02-20 Thread Chitra R
Hey, I got it. Thank you so much. On Sat, Feb 18, 2017 at 5:33 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > You'll need to make your own buildFacetResults method in your > DrillSideways subclass, and inside there you compute the facet counts > for each dim using the implementation

Re: Numeric Ranges Faceting

2017-02-18 Thread Michael McCandless
You'll need to make your own buildFacetResults method in your DrillSideways subclass, and inside there you compute the facet counts for each dim using the implementation that dim used (taxonomy, sorted set, or range). The TestRangeFacetCounts shows another example of this. Mike McCandless http:/

Re: Numeric Ranges Faceting

2017-02-18 Thread Chitra R
Hi, RangeFaceting computation was working fine while adding numeric Ranges in DrillDownQuery. And this is not my issue. My question is, I need to compute string facets (via SortedSetDocValuesFacetCounts) using drill sideways search by adding numeric Ranges in DrillDownQuery... This case only thr

Re: Numeric Ranges Faceting

2017-02-18 Thread Michael McCandless
Hi, I think you are close! All you need to do is make a subclass of DrillSideways and override the buildFacetsResults method to do the range faceting on your numeric dims. I just pushed an improvement to RangeFacetsExample.java showing how to do this: http://git-wip-us.apache.org/repos/asf/lucen

Re: Numeric Ranges Faceting

2017-02-17 Thread Chitra R
Hey, I have indexed "author","module_id" fields as SortedSetDocValuesFacetField and "time", "price","salary" fields as NumericDocValuesField. My Category looks like: *module_id -> author *price module_id and price are parent categories. After selecting any one of the facets from

Re: Numeric Ranges Faceting

2017-02-17 Thread Michael McCandless
Hi, how are you instantiating your MultiFacets? You should be passing e.g. a LongRangeFacetCounts instance for your "time" dimension, which should prevent that exception. For DrillSideways, I think you must subclass, and then override buildFacetResult to compute your range facets, because that cl

Re: Numeric Ranges Faceting

2017-02-17 Thread Chitra R
Any suggestions Kindly help me to move forward. Regards, Chitra On Wed, Feb 15, 2017 at 9:23 PM, Chitra R wrote: > Hi, > Thanks for the suggestion. But in the case of drill sideways > search, retrieving allDimensions (using Facets.getAllDimension()) threw an > exception which

Re: Numeric Ranges Faceting

2017-02-15 Thread Chitra R
Hi, Thanks for the suggestion. But in the case of drill sideways search, retrieving allDimensions (using Facets.getAllDimension()) threw an exception which is shown below... 1. While opening DocValuesReaderState, global ordinals and ordinals Range map will be computed for '$facets' f

Re: Numeric Ranges Faceting

2017-02-15 Thread Michael McCandless
Hi, have a look at the RangeFacetsExample.java under the lucene/demo module... it shows how to do this. Mike McCandless http://blog.mikemccandless.com On Tue, Feb 14, 2017 at 12:07 PM, Chitra R wrote: > Hi, >We have planned to implement both string and numeric faceting using > docvalues f

Numeric Ranges Faceting

2017-02-14 Thread Chitra R
Hi, We have planned to implement both string and numeric faceting using docvalues field. For string faceting, we have added pathtraversed dimensions in drilldownquery. But for numeric faceting , how and where can we add pathtraversed ranges during nextlevel faceted search.? And which is the