apache / apache/lucene

Fix QueryParser to handle nested fields [LUCENE-3133]

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

Description

Once we commit #3528, we need to make it easy for apps to enable this with QueryParser.

It seems like it's a "schema" like behavior, ie we need to be able to express the join structure of the related fields.

And then whenever QP produces a query that spans fields requiring a join, the NestedDocumentQuery is used to wrap the child fields?

---
Migrated from [LUCENE-3133](https://issues.apache.org/jira/browse/LUCENE-3133) by Michael McCandless (@mikemccand), updated May 09 2016
Linked issues:
- #3528

Contributor guide

Open the contributing guide

Research direction

Start by reviewing linked issue #3528 and the QueryParser and NestedDocumentQuery entry points. Determine how the related-field join structure should be expressed and when a query spanning joined fields should be wrapped. Done means applications can enable nested-field handling through QueryParser.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.