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 = "

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(

Re: SortedNumericDocValuesFIeld

2016-05-31 Thread Chitra R
Hi, Could you please explain how to store the SortedNumericDocValuesField to include in the code? Thanks, Chitra On Tue, May 31, 2016 at 3:02 PM, Chitra R <chithu.r...@gmail.com> wrote: > Thanks. > > On Fri, May 27, 2016 at 6:02 PM, Adrien Grand <jpou..

Re: SortedNumericDocValuesFIeld

2016-05-31 Thread Chitra R
help me to achieve this? > > > > > > > > > Thanks, > > > Chitra > > > > > > On Thu, May 26, 2016 at 8:17 PM, Michael McCandless < > > > luc...@mikemccandless.com> wrote: > > > > > >> This looks about right ...

Re: SortedNumericDocValuesFIeld

2016-05-27 Thread Adrien Grand
ike McCandless > >> > >> http://blog.mikemccandless.com > >> > >> On Thu, May 26, 2016 at 9:29 AM, Chitra R <chithu.r...@gmail.com> > wrote: > >> > >> > Hi, > >> > I am new to lucene. Anyone please explain

Re: SortedNumericDocValuesFIeld

2016-05-27 Thread Chitra R
gt;> On Thu, May 26, 2016 at 9:29 AM, Chitra R <chithu.r...@gmail.com> wrote: >> >> > Hi, >> > I am new to lucene. Anyone please explain how to sort the numeric >> > values by SortedNumericDocValuesField? >> > >

Re: SortedNumericDocValuesFIeld

2016-05-27 Thread Chitra R
out right ... did something go wrong? > > Mike McCandless > > http://blog.mikemccandless.com > > On Thu, May 26, 2016 at 9:29 AM, Chitra R <chithu.r...@gmail.com> wrote: > > > Hi, > > I am new to lucene. Anyone please explain how to sort the numeric >

Re: SortedNumericDocValuesFIeld

2016-05-26 Thread Michael McCandless
This looks about right ... did something go wrong? Mike McCandless http://blog.mikemccandless.com On Thu, May 26, 2016 at 9:29 AM, Chitra R <chithu.r...@gmail.com> wrote: > Hi, > I am new to lucene. Anyone please explain how to sort the numeric > values by SortedNumeri

SortedNumericDocValuesFIeld

2016-05-26 Thread Chitra R
Hi, I am new to lucene. Anyone please explain how to sort the numeric values by SortedNumericDocValuesField? I tried like this using Lucene 4.10.4: doc.add(new SortedNumericDocValuesField("Numericdoc_price", 1L)); doc.add(new SortedNumericDocValuesField("Numeric