lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomoko Uchida <>
Subject o.a.l.u.fst package's sample code might be outdated?
Date Wed, 10 Dec 2014 15:32:12 GMT

I run the "FST Construction example:" code in package.html with lucene
4.10.2, and saw a compile error.

Error ocurred at this line.
builder.add(Util.toIntsRef(scratchBytes, scratchInts), outputValues[i]);

Consulting with Javadoc, I found Util.toIntsRef() method takes
IntsRefBuilder as 2nd argument instead of IntsRef.

So, I changed scrachInts variable's type, from IntsRef  to IntsRefBuilder.
And it worked fine.
It seems to be there are some FST API changes at 4.10.

Am I correct? (And is this already filed?)


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message