You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2016/11/04 22:06:58 UTC

[jira] [Comment Edited] (SOLR-9682) Ability to specify a query with a parameter name

    [ https://issues.apache.org/jira/browse/SOLR-9682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15600352#comment-15600352 ] 

Yonik Seeley edited comment on SOLR-9682 at 11/4/16 10:06 PM:
--------------------------------------------------------------

example:
{code}
curl 'http://localhost:8983/solr/query?myfilter=user:Yonik+rating:5' -d '
{
  query : "awesome",
  limit : 10,
  filter : { param : myfilter }
}'
{code}

When we finally get around to specifying a complete query language in JSON, we'll want this to slide right in.  So think of "queryParam" as the type of the query.  The value is retrieved from "params" and parsed as a lucene/solr query.  paramToSolrQuery would be more exact/descriptive, but too long and awkward to remember exactly.
"deref" or "dereference" ?



was (Author: yseeley@gmail.com):
example:
{code}
curl 'http://localhost:8983/solr/query?myfilter=user:Yonik+rating:5' -d '
{
  query : "awesome",
  limit : 10,
  filter : { queryParam : myfilter }
}'
{code}

When we finally get around to specifying a complete query language in JSON, we'll want this to slide right in.  So think of "queryParam" as the type of the query.  The value is retrieved from "params" and parsed as a lucene/solr query.  paramToSolrQuery would be more exact/descriptive, but too long and awkward to remember exactly.
"deref" or "dereference" ?


> Ability to specify a query with a parameter name
> ------------------------------------------------
>
>                 Key: SOLR-9682
>                 URL: https://issues.apache.org/jira/browse/SOLR-9682
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Facet Module, JSON Request API
>            Reporter: Yonik Seeley
>         Attachments: SOLR-9682.patch
>
>
> Currently, "filter" only supports query strings (examples at http://yonik.com/solr-json-request-api/ )
> It would be nice to be able to reference a param that would be parsed as a lucene/solr query.  Multi-valued parameters should be supported.
> We should keep in mind (and leave room for) a future "JSON Query Syntax" and chose labels appropriately.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org