Solr does not allow unquoted JSON DSL in query template
mattoscln opened this issue · 1 comments
mattoscln commented
When including JSON DSL in a Solr query template, it must be quoted or is not added to the query correctly.
To Reproduce
Steps to reproduce the behavior:
- Add a JSON parameter to a Solr query template:
{
"json": {
"query": {
"lucene": {
"query": "$query"
}
}
}
}
- Run the evaluation process.
- Observe that the query details have not been added to the SolrQuery (eg. the query request looks like
/select?fl=field1 field2&json=&rows=20
Expected behavior
Included JSON DSL should not require quotes around the content - this will make it harder to write and increase the number of potential bugs in the query where JSON is in use.
agazzarini commented
Closed with #79