lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] [Updated] (LUCENE-4271) Solr LocalParams for Lucene Query Parser
Date Sat, 17 Nov 2012 15:46:12 GMT


Yonik Seeley updated LUCENE-4271:

    Attachment: LUCENE-4271.patch

Since I've opened this issue, I've seen even more people try to use {!foo} syntax directly
in a lucene query string.

Here's a patch that implements the syntax.  For lucene, it simply calls getFieldQuery and
will hence just treat the symbols as text by default.  For Solr, it invokes sub-QParser logic.

Seems to work fine, but I still need to add tests.
> Solr LocalParams for Lucene Query Parser
> ----------------------------------------
>                 Key: LUCENE-4271
>                 URL:
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Yonik Seeley
>         Attachments: LUCENE-4271.patch
> The Lucene QueryParser should implement Solr's LocalParams syntax directly so that instead
> {code}
> _query_:"{!geodist d=10 p=20.5,30.2}"
> {code}
> one could directly use
> {code}
> {!geodist d=10 p=20.5,30.2}
>  {code}
> references:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message