lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gonzalo Emanuel San Martin <>
Subject Few questions about updateDocValues methods
Date Tue, 17 Nov 2015 14:07:02 GMT

I have few questions related to updateDocValues methods and usages, it
would be great if I can be helped

1) Is it possible to update a stored numeric field? I saw from the java-doc
that updateNumericDocValue is to update NumericDocValues. The fields
NumericDocValuesField aren't stored, if I want to store that field, I need
to use a extra StoredField. However, the updateDocValues(Term term,
Field... updates) method only checks that the type of the field to be
updated is Numeric, So i thought that if I define a field like this:

FieldType type = new FieldType();
new LongField(field.getName(), longValue, type));

maybe it could work, but the field stored is not updated.

2) Is it possible to update a sorted field?

3) Is it possible to updated a double field? Double fields can be
represented as NumericDocValuesField, but in the updateDocValues method the
new values are represented as long so I could lose precision parsing a
double to long.

Thanks in advance, and I'm sorry for my limited English.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message