Store NumericField precisionStep in fnx file
--------------------------------------------

                 Key: LUCENE-3187
                 URL: https://issues.apache.org/jira/browse/LUCENE-3187
             Project: Lucene - Java
          Issue Type: Improvement
          Components: core/index
    Affects Versions: 3.2, 3.1, 3.0, 2.9
            Reporter: Uwe Schindler


This is a similar problem like LUCENE-3186:

The following question was sent to user list: 
[http://mail-archives.apache.org/mod_mbox/lucene-java-user/201106.mbox/%3c614c529d389a5944b351f7dfb7594f24012aa...@uksrpblkexb01.detica.com%3E]

The main problem is that you have to pass the precision step and must knwo the 
field type of numeric fields before doing a query, else you get wrong results. 
We can maybe store the type and precision step in fnx file (like we do for 
stored numeric fields in FieldsWriter).

I am not sure whats the best way to do it (without too much code 
specialization), but it seems a good idea. On the other hand, we don't store 
references to the Analyzer in the fnx file, so why for numeric field (it's just 
like an analyzer - if you change it, results are wrong)?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to