apache / apache/lucene

Allow using other implementations of Format with NumericConfig [LUCENE-6851]

Open
#7,909 0 comments 0 reactions 0 assignees View on GitHub
affects-version:5.2.1 legacy-jira-priority:Major module:queryparser type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

NumericConfig forces me to pass in a java.text.NumberFormat.

Our own internationalisation guidelines say to avoid java.text.NumberFormat and always use com.ibm.icu.text.NumberFormat instead, because the latter does the right thing for Arabic.

I wish NumericConfig would allow me to pass in any Format, so that I didn't have to write the horrible adapter class which I am about to write. :)

---
Migrated from [LUCENE-6851](https://issues.apache.org/jira/browse/LUCENE-6851) by Trejkaz

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.