lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: response writer 'default' action
Date Sun, 04 Mar 2007 19:56:51 GMT
On 3/4/07, Ryan McKinley <ryantxu@gmail.com> wrote:
> Yes, i could figure some other way to do this, but mostly I was
> surprised that the writers default to a debugging action rather then a
> useful one.

It was useful to me at the time to try and figure out if I had
everything in the list I needed ;-)

I'm OK with toString() for Object (I don't see it as a big deal either
way, really).

> > ... but i agree it would be handy to add a...
> >
> >   public void writeUnknown(String name, Object val, boolean needsEscaping) {
> >     writeStr(name, val.getClass().getName() + ':' + val.toString(), needsEscaping);
> >   }
> >
> > ...to the base writers so that people could override in subclasss
> > for special purposes and then call that in the else case.
> >
>
> Yes, that would be nice.

Very expert level use, may change from release-to-release :-)

-Yonik

Mime
View raw message