apache / apache/lucene

Solr LocalParams for Lucene Query Parser [LUCENE-4271]

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

Description

The Lucene QueryParser should implement Solr's LocalParams syntax directly so that instead of

```Java
_query_:"{!geodist d=10 p=20.5,30.2}"
```

one could directly use

```Java
{!geodist d=10 p=20.5,30.2}

```

references: http://wiki.apache.org/solr/LocalParams

---
Migrated from [LUCENE-4271](https://issues.apache.org/jira/browse/LUCENE-4271) by Yonik Seeley (@yonik), updated Nov 19 2012
Attachments: [LUCENE-4271.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-4271/LUCENE-4271.patch)
Linked issues:
- [SOLR-4093](https://issues.apache.org/jira/browse/SOLR-4093)

Contributor guide

Open the contributing guide

Research direction

Start with the Lucene QueryParser and the linked Solr LocalParams reference to understand the requested syntax. Done means the parser accepts `{!geodist d=10 p=20.5,30.2}` directly rather than requiring it inside `_query_`.

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.