Re: Fetching float or int fields from index by Lucene document

2008-07-02 Thread Yonik Seeley
On Wed, Jul 2, 2008 at 10:45 PM, Chris Hostetter <[EMAIL PROTECTED]> wrote: > It never really occured to me before, but it is kind of weird that there > is a toInternal and a toExternal and an indexedToReadable -- but there is > no readableToIndexed ... toInternal is used both for the "indexed" val

Re: Fetching float or int fields from index by Lucene document

2008-07-02 Thread Chris Hostetter
: See the methods on FieldType, esp toExternal() It never really occured to me before, but it is kind of weird that there is a toInternal and a toExternal and an indexedToReadable -- but there is no readableToIndexed ... toInternal is used both for the "indexed" value and for the "stored" valu

Re: Fetching float or int fields from index by Lucene document

2008-07-02 Thread Kevin Osborn
Thanks. I knew there had to be something like that. It worked perfectly. - Original Message From: Yonik Seeley <[EMAIL PROTECTED]> To: solr-user@lucene.apache.org Sent: Wednesday, July 2, 2008 2:44:46 PM Subject: Re: Fetching float or int fields from index by Lucene document S

Re: Fetching float or int fields from index by Lucene document

2008-07-02 Thread Yonik Seeley
See the methods on FieldType, esp toExternal() -Yonik On Wed, Jul 2, 2008 at 5:39 PM, Kevin Osborn <[EMAIL PROTECTED]> wrote: > As part of my results, I am building a lot of facet information. For example, > an Attribute ID also needs to return the Attribute Text. > > So, I have code like the fo

Fetching float or int fields from index by Lucene document

2008-07-02 Thread Kevin Osborn
As part of my results, I am building a lot of facet information. For example, an Attribute ID also needs to return the Attribute Text. So, I have code like the following (really in a cache): Term term = new Term ("AtrID", "A0001"); Document doc = searcher.doc(searcher.getFirstMatch(term)); retu