apache / apache/lucene

make LengthFilterFactory's min/max args have sensible defaults [LUCENE-5490]

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

Description

LengthFilterFactory's min/max args are currently required, but it seems like we could give them sensible defaults and make them optional...

min = 0
max = IndexWriter.MAX_TERM_LENGTH

---
Migrated from [LUCENE-5490](https://issues.apache.org/jira/browse/LUCENE-5490) by Chris M. Hostetter (@hossman)

Contributor guide

Open the contributing guide

Research direction

Start by locating LengthFilterFactory and its min/max argument handling, then inspect how IndexWriter.MAX_TERM_LENGTH is exposed for this use. Confirm the intended defaults are min=0 and max=IndexWriter.MAX_TERM_LENGTH, while explicit arguments continue to work; completion should include relevant regression coverage if the existing test entry point is found.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.