git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@331964 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Otis Gospodnetic 2005-11-09 06:44:10 +00:00
parent 2ce046a7a6
commit 495e885eee
2 changed files with 6 additions and 2 deletions

View File

@ -62,6 +62,10 @@ Changes in runtime behavior
disableLuceneLocks disableLuceneLocks
(Daniel Naber) (Daniel Naber)
8. Minor change in FieldCacheImpl to make it use its own IntParser and
FloatParser inner classes.
(Yonik Seeley via Otis Gospodnetic)
New features New features
1. Added support for stored compressed fields (patch #31149) 1. Added support for stored compressed fields (patch #31149)

View File

@ -164,7 +164,7 @@ implements FieldCache {
do { do {
Term term = termEnum.term(); Term term = termEnum.term();
if (term.field() != field) break; if (term.field() != field) break;
int termval = Integer.parseInt (term.text()); int termval = parser.parseInt(term.text());
termDocs.seek (termEnum); termDocs.seek (termEnum);
while (termDocs.next()) { while (termDocs.next()) {
retArray[termDocs.doc()] = termval; retArray[termDocs.doc()] = termval;
@ -204,7 +204,7 @@ implements FieldCache {
do { do {
Term term = termEnum.term(); Term term = termEnum.term();
if (term.field() != field) break; if (term.field() != field) break;
float termval = Float.parseFloat (term.text()); float termval = parser.parseFloat(term.text());
termDocs.seek (termEnum); termDocs.seek (termEnum);
while (termDocs.next()) { while (termDocs.next()) {
retArray[termDocs.doc()] = termval; retArray[termDocs.doc()] = termval;