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 @ getRailo.org <[email protected]>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.**apache.org<[email protected]>
> For additional commands, e-mail: 
> [email protected].**org<[email protected]>
>
>

Reply via email to