Re: Convert BytesRef to long in Solr 6.2

2016-09-29 Thread Chris Hostetter
: I am in the process of upgrading from Solr 5.5 to 6.2, so I changed NumericUtils to LegacyNumericUtils. ... : However, LegacyNumericUtils is the deprecated form of NumericUtils. It : says that I should use the PointValues class instead. However, unless I : am missing something, it doe

Convert BytesRef to long in Solr 6.2

2016-09-29 Thread Osborn, Kevin
I have the following code inside a Solr post filter. SortedDocValues docValues = DocValues.getSortedSet(context.reader, "my_field"); long x = LegacyNumericUtils.prefixCodedToLong(docValues.lookupOrd(b)) I am in the process of upgrading from Solr 5.5 to 6.2, so I changed NumericUtils to Legacy