Re: Count terms for IntPoint field

2018-03-01 Thread Riccardo Tasso
Ok, I've studied the documentation. First of all what I needed for most of my fields (StringField, TextField) is the: MultiFields.getTerms(reader, field.name).size(); which counts the distinct terms for the field. For PointFields the hint was right: PointValues.size() is what i need. For DocVa

Re: Count terms for IntPoint field

2018-03-01 Thread Riccardo Tasso
Thanks, probably for DocValues I can use DocValuesStatsCollector and DocValuesStats. 2018-03-01 2:13 GMT+01:00 Adrien Grand : > You probably want to look at PointValues.size(), which gives you the number > of indexed points. Doc values do not support index statistics however. > > Le mer. 28 févr.

Re: Count terms for IntPoint field

2018-02-28 Thread Adrien Grand
You probably want to look at PointValues.size(), which gives you the number of indexed points. Doc values do not support index statistics however. Le mer. 28 févr. 2018 à 21:47, Riccardo Tasso a écrit : > Hello, > I'm porting an application from lucene 4 to lucene 7. > > I've converted a field

Count terms for IntPoint field

2018-02-28 Thread Riccardo Tasso
Hello, I'm porting an application from lucene 4 to lucene 7. I've converted a field from IntField to IntPoint and at query or indexing time everything is ok. When I call the method: reader.getSumTotalTermFreq(field); it returns zero for my IntPoint field. I understand that IntPoint is stored i