apache / apache/lucene

Support numeric value in Field class [LUCENE-8870]

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

Description

I checked the following comment in Field class.

```java
// TODO: allow direct construction of int, long, float, double value too..?
```

We already have some fields like IntPoint and StoredField, but I think it's okay.

The test cases are set in the TestField class.

---
Migrated from [LUCENE-8870](https://issues.apache.org/jira/browse/LUCENE-8870) by Namgyu Kim (@danmuzi), updated Jun 26 2019
Attachments: [LUCENE-8870.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-8870/LUCENE-8870.patch)

Contributor guide

Open the contributing guide

Research direction

Start in the Field class by reviewing the TODO about directly constructing int, long, float, and double values, then inspect the existing numeric fields such as IntPoint and StoredField. Use TestField for coverage; done means numeric values can be constructed through Field as intended and the relevant tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.