: What is the best way to get a float field value from docID?
: I tried the following code but when it runs throws an exception For input
: string: "`??eI" at line float lat = Float.parseFloat(tlat);

the most most straight foward level of abstraction to use (if you want to 
leverage the field cache as you are trying to do here) is probably to get 
hte FieldType & SchemaField objects for your "latitude" field (from the 
IndexSchema) and then call FieldType.getValueSource.  You can then ask the 
ValueSource for the value for any given doc in your DocIterator.

that wa you don't have to worry about wether this is an IntField, or a 
TrieIntField, etc...


-Hoss

Reply via email to