apache / apache/lucene

WildcardQueryNode to expose the positions of the wildcard characters, for easier use in processors and builders [LUCENE-1820]

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

Description

Change the WildcardQueryNode to expose the positions of the wildcard characters.
This would allow the AllowLeadingWildcardProcessor not to have to knowledge about the wildcard chars \* and ? and avoid double check again.

---
Migrated from [LUCENE-1820](https://issues.apache.org/jira/browse/LUCENE-1820) by Luis Alves, updated May 09 2016
Linked issues:
- #2898
- #2641

Contributor guide

Open the contributing guide

Research direction

Start by reading WildcardQueryNode and AllowLeadingWildcardProcessor, then inspect the linked issues #2898 and #2641 for context. The work is done when WildcardQueryNode exposes wildcard-character positions and AllowLeadingWildcardProcessor can use that information instead of independently checking '*' and '?'.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.