apache / apache/lucene

Add autoGeneratePhraseQueries into StandardQueryParser [LUCENE-5366]

Open
#6,430 1 comment 0 reactions 0 assignees View on GitHub
affects-version:4.6 legacy-jira-priority:Major module:core/queryparser type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

classic.QueryParser has an autoGeneratePhraseQueries but flexible.standard.StandardQueryParser does not have it. autoGeneratePhraseQueries feature is useful when using CJKAnalyzer. I wrote a patch that adds this feature into StandardQueryParser.

Please apply this patch if you'd like.

---
Migrated from [LUCENE-5366](https://issues.apache.org/jira/browse/LUCENE-5366) by Taiki Sugawara (@buzztaiki)
Attachments: [LUCEN-5366_4x.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-5366/LUCEN-5366_4x.patch), [LUCEN-5366.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-5366/LUCEN-5366.patch)

Contributor guide

Open the contributing guide

Research direction

Start by comparing classic.QueryParser with flexible.standard.StandardQueryParser, focusing on the existing autoGeneratePhraseQueries behavior and the attached LUCENE-5366 patches. Confirm the intended StandardQueryParser API and verify that equivalent behavior works with CJKAnalyzer before considering the issue complete.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.