Affects Version/s: None
Fix Version/s: 7.1
Security Level: Public (Default Security Level. Issues are Public)
It will be great if Solr has a powerful query DSL. This ticket is an extension of http://yonik.com/solr-json-request-api/.
Here are several examples of Query DSL
the above example can be rewritten as (because lucene is the default qparser)
more complex example:
I call it Json Query Object (JQO) and It defined as :
- 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 : "
- It can be a json object with structure like this
Therefore the above dismax query can be rewritten as ( 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.