aadrian opened a new pull request, #5442: URL: https://github.com/apache/solr/pull/5442
https://issues.apache.org/jira/browse/SOLR-15358 # Description `CurrencyFieldType.createFields` built its sub-fields with the singular `createField`, which never adds docValues. Since schema 1.7 the sub-fields default to docValues and `uninvertible="false"`, so on `sample_techproducts_configs` range queries, `amount_c:*`, sorting and `currency()` on a currency field all fail ("unexpected docvalues type NONE"). Reported on users@ for 9.9/9.10: https://lists.apache.org/thread/w92810ghv57y2p27cvzwthc4jok34cnl # Solution Use the plural `createFields` for both sub-fields, as `PointType` does. Compatibility: nothing changes for sub-fields without docValues. Indexes whose sub-fields declare docValues have none so far, and Lucene rejects adding them to an existing field, so those need a reindex (or `docValues="false" uninvertible="true"` on the sub-fields). Upgrade note added for 11.0. `sample_techproducts_configs` sets `useDocValuesAsStored="false"` on the sub-fields so `fl=*` doesn't return them. # Tests New `CurrencyFieldTypeDocValuesTest` on the techproducts configset; 4 of its 6 tests fail without the fix. `CurrencyFieldTypeTest` no longer assumes 3 fields, as the randomized `long` sub-field can now have docValues. # Checklist - [x] I have reviewed the guidelines for [How to Contribute](https://github.com/apache/solr/blob/main/CONTRIBUTING.md) and my code conforms to the standards described there to the best of my ability. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
