lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vitaly Funstein <>
Subject Re: Lucene API
Date Mon, 05 Nov 2012 19:38:41 GMT
Are you critiquing CharTermAttribute in particular, or Lucene in general?
It appears CharTermAttribute is DSL-style builder API, just like its
superinterface Appendable - does that not appear intentional and
self-explanatory? Further, I believe Term instances are meant to be
immutable hence no direct linkage between the two. I could be wrong though.

On Mon, Nov 5, 2012 at 10:33 AM, Igal @ <>wrote:

> I don't mean to sound critical, but is there a reason that the API is not
> simpler?
> for example, if I want to read/modify a CharTermAttribute's value, I need
> to use toString() to get the value, which is very unintuitive, and either
> copyBuffer() or setEmpty() and append().
> is there a reason not to add the methods getTerm() and setTerm()?
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.**<>
> For additional commands, e-mail: java-user-help@lucene.apache.**org<>

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