apache / apache/lucene

WordDelimiterGraphFilter doesn't split HTTPRequest properly [LUCENE-7929]

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

Description

The current implementation of WordDelimiterGraphFilter doesn't properly deal with all uppercase parts, and also it doesn't handle numbers well in some cases.

I've created a pull request with changes to fix that: https://github.com/apache/lucene-solr/pull/231

With my patch HTTPRequest is split into HTTP and Request.

---
Migrated from [LUCENE-7929](https://issues.apache.org/jira/browse/LUCENE-7929) by Nicolás Lichtmaier (@niqueco), updated Mar 08 2019

Contributor guide

Open the contributing guide

Research direction

Start with WordDelimiterGraphFilter and the behavior described in PR 231. Reproduce how HTTPRequest and inputs containing numbers are split, then compare the current behavior with the pull request's proposed changes. Done means uppercase components and affected numeric cases are split correctly without regressions.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.