lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomoko Uchida <tomoko.uchida.1...@gmail.com>
Subject Re: o.a.l.u.fst package's sample code might be outdated?
Date Wed, 10 Dec 2014 15:34:36 GMT
Sorry, I paste a wrong link...

> I run the "FST Construction example:" code in package.html with lucene
4.10.2, and saw a compile error.
> http://lucene.apache.org/core/4_10_2/core/index.html

I run the "FST Construction example:" code in package.html with lucene
4.10.2, and saw a compile error.
http://lucene.apache.org/core/4_10_2/core/index.html?org/apache/lucene/util/fst/package-summary.html

2014-12-11 0:32 GMT+09:00 Tomoko Uchida <tomoko.uchida.1111@gmail.com>:

> Hi,
>
> I run the "FST Construction example:" code in package.html with lucene
> 4.10.2, and saw a compile error.
> http://lucene.apache.org/core/4_10_2/core/index.html
>
> 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.
>
> http://lucene.apache.org/core/4_10_2/core/index.html?org/apache/lucene/util/fst/Util.html
>
> 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?)
>
> Regards,
> Tomoko
>

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