lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cao Manh Dat (JIRA)" <>
Subject [jira] [Created] (SOLR-11244) Query DSL for Solr
Date Wed, 16 Aug 2017 10:56:00 GMT
Cao Manh Dat created SOLR-11244:

             Summary: Query DSL for Solr
                 Key: SOLR-11244
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Cao Manh Dat
            Assignee: Cao Manh Dat

It will be great if Solr has a powerful query DSL. This ticket is an extension of [].

Here are definition of Json Query Object (JQO) :
- It can be a valid query string for Lucene query parser, for example : "title:solr"
- It can be a valid local parameters string, for example : "{!dismax qf=myfield}solr rocks"
- It can be a json object with structure like this 
  "query-parser-name" : {
     "param1" : "value1",
     "param2" : "value2",
     "query" : <JQO>,
     "another-param" : <JQO>
Therefore the above dismax query can be rewritten as
  "dismax" : {
     "qf" : "myfield"
     "query" : "solr rocks"
Be noticed that the query argument in local parameters, is put as value of {{query}} field.
I will attach an HTML, contain more examples of Query DSL.

This message was sent by Atlassian JIRA

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

View raw message