apache / apache/lucene

Add filter support to queryparser [LUCENE-6313]

Open
#7,374 3 comments 0 reactions 0 assignees View on GitHub
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

Now that Query has the capabilities of Filter, we should let users add clauses of type Occur.FILTER from the query language.

---
Migrated from [LUCENE-6313](https://issues.apache.org/jira/browse/LUCENE-6313) by Robert Muir (@rmuir)
Attachments: [LUCENE-6313.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-6313/LUCENE-6313.patch)

Contributor guide

Open the contributing guide

Research direction

Start in Lucene's queryparser implementation and inspect how query-language clauses are mapped to Query and Occur values. Read the attached LUCENE-6313.patch for historical context, then locate the relevant parser tests and verify that FILTER clauses are accepted and represented as Occur.FILTER; completion requires those cases to pass.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.