lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Fetching float or int fields from index by Lucene document
Date Thu, 03 Jul 2008 02:45:15 GMT

: 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" value, so things like SortableIntField wind up 
"storing" an encoded value even though there isn't much need for it.

In theory, indexing an "sint" field unstored and storing a corrisponding 
"integer" field unindex might actaully be faster then a single field since 
the toExternal method is a NOOP.



-Hoss


Mime
View raw message