Re: How groupingSearch specifies SortedNumericDocValuesField

2019-10-17 Thread duriku
Hi, I managed to retrive the groups using the *SortedSetDocValuesField* in *GroupingSearch* by initialising the groupsearch with *SortedSetFieldSource* The problem is when a document has multiple values in the field "SortedSetDocValuesField" than not the grouping query does not return all the

Re: How groupingSearch specifies SortedNumericDocValuesField

2019-05-15 Thread 顿顿
Hi: This is a unit test, and I changed to NumericDocValuesField with a similar error. I tried testing the NumericDocValuesField, SortedNumericDocValuesField and SortedSetDocValuesField, these three fields can not be specified in groupingSearch. Does groupingSearch only support

Re: How groupingSearch specifies SortedNumericDocValuesField

2019-05-14 Thread Martin Grigorov
Hi, On Tue, May 14, 2019 at 8:28 PM 顿顿 wrote: > When I use groupingSearch specified as SortedNumericDocValuesField, > I got an "unexpected docvalues type NUMERIC for field 'id' > (expected=SORTED)" Exception. > > My code is as follows: > String indexPath = "tmp/grouping"; > Analyzer

How groupingSearch specifies SortedNumericDocValuesField

2019-05-14 Thread 顿顿
When I use groupingSearch specified as SortedNumericDocValuesField, I got an "unexpected docvalues type NUMERIC for field 'id' (expected=SORTED)" Exception. My code is as follows: String indexPath = "tmp/grouping"; Analyzer standardAnalyzer = new StandardAnalyzer(); Directory