Hi Maros, Do you need to perform range queries? If not, you could index those numbers like regular strings with StringField.
If yes, it is also possible with points by returning INTERSECTS all the time in the intersect visitor, the downside you might not like is that it is a push API while the TermsEnum API you were used to was a pull API. Le mer. 1 mars 2017 à 16:11, Maros Urbanec <maros.urba...@comptel.com> a écrit : > Lucene beginner here, please excuse me if I’m asking anything obvious. > > In Lucene 6, LongField and IntField were renamed to LegacyLongField and > LegacyIntField, deprecated with a JavaDoc suggestion to use LongPoint and > IntPoint classes instead. > > However, it seems impossible to build a term vocabulary (=enumerate all > distinct values) of these XPoint fields. > > As a third option, one can add a field of class NumericDocValuesField. I > tried hardtop search through documentation, alas found no way of building > term vocabulary either. > > Is there a non-deprecated way of indexing a numeric field in Lucene 6, > given the requirement to build a term vocabulary? > Disclaimer: This message and any attachments thereto are intended solely > for the addressed recipient(s) and may contain confidential information. If > you are not the intended recipient, please notify the sender by reply > e-mail and delete the e-mail (including any attachments thereto) without > producing, distributing or retaining any copies thereof. Any review, > dissemination or other use of, or taking of any action in reliance upon, > this information by persons or entities other than the intended > recipient(s) is prohibited. Thank you. >