This worked, thanks Yonik.

-Viswa

> Date: Mon, 13 Dec 2010 22:54:35 -0500
> Subject: Re: Userdefined Field type - Faceting
> From: yo...@lucidimagination.com
> To: solr-user@lucene.apache.org
> 
> Perhaps try overriding indexedToReadable() also?
> 
> -Yonik
> http://www.lucidimagination.com
> 
> On Mon, Dec 13, 2010 at 10:00 PM, Viswa S <svis...@hotmail.com> wrote:
> >
> > Hello,
> >
> > We implemented an IP-Addr field type which internally stored the ips as 
> > hex-ed string (e.g. "192.2.103.29" will be stored as "c002671d"). My 
> > "toExternal" and "toInternal" methods for appropriate conversion seems to 
> > be working well for query results, but however when faceting on this field 
> > it returns the raw strings. in other words the query response would have 
> > "192.2.103.29", but facet on the field would return "<int 
> > name="c002671d">1</int>"
> >
> > Why are these methods not used by the faceting component to convert the 
> > resulting values?
> >
> > Thanks
> > Viswa
> >
                                          

Reply via email to