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 <i...@getrailo.org>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<java-user-unsubscr...@lucene.apache.org> > For additional commands, e-mail: > java-user-help@lucene.apache.**org<java-user-h...@lucene.apache.org> > >