apache / apache/lucene

I'm having 2 strings string 1) "abc" string 2) "xya" . Both are indexed to a string called "name" Then i'm trying to search for a* . It's giving both the strings. but i need the sting abc since it starts with a. This is what i'm expecting [LUCENE-4067]

Open
#5,139 0 comments 0 reactions 0 assignees View on GitHub
affects-version:3.5 legacy-jira-label:test legacy-jira-priority:Major module:core/queryparser type:task
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

I'm having 2 strings string 1) "abc" string 2) "xya" . Both are indexed to a string called "name" Then i'm trying to search for a\* . It's giving both the strings. but i need the sting abc since it starts with a. This is what i'm expecting since i gave the search sting as a\*

---
Migrated from [LUCENE-4067](https://issues.apache.org/jira/browse/LUCENE-4067) by gunasekaran

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported case with indexed values "abc" and "xya" in the "name" field, then query for a\* and compare the returned documents. Read the Lucene-4067 migration context and search-query behavior first; done means the query returns only the value beginning with "a", with a regression test covering the example.

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.