apache / apache/lucene

AbstractField / Field / NumericField do not override equals and hashcode methods [LUCENE-3554]

Open
#4,628 6 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Minor module:core/index type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

Field, NumericField and AbstractField implementations of Fieldable do not override equals and hashcode methods and cannot be compared as such.

---
Migrated from [LUCENE-3554](https://issues.apache.org/jira/browse/LUCENE-3554) by Alexandre Dupriez, updated Nov 03 2011

Contributor guide

Open the contributing guide

Research direction

Start by locating the AbstractField, Field, and NumericField implementations and the Fieldable contract, then inspect existing tests covering field comparison. Determine the intended equality and hashCode semantics from nearby APIs and tests; done means all three implementations have consistent behavior verified by focused tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.