mkhludnev commented on PR #4582:
URL: https://github.com/apache/solr/pull/4582#issuecomment-4878292587
just velociraptoring out loud
this reference is not really a reference, since it's going to be used once.
It's just an escaping from the current boundaries.
```
"json",
"{query:{intervals:{df:v_ws, query:$q1}}, "
+ "
json_queries:{q1:{phrase:{terms:[phrA_quick,phrA_brown,phrA_fox]}}},"
+ " fields:id"
+ "}"),
```
Presumably if we can hijack json-to-parameters conversion
[https://github.com/apache/solr/blob/bb8c68b67a81467ff925dab4b637d623e7d289b3/solr/core/src/java/org/apache/solr/request/json/JsonQueryConverter.java#L132](here),
it can lookup `QParserPlugin` right here, and check it for `JsonQParser`
interface and somehow pass a bare Map to `JsonQParser` for parsing, thus it
could parse JSON model.
WDYT? is it worth to try?
```
{
query:{
intervals:{
use_field:v_ws,
phrase:{terms:[phrA_quick,phrA_brown,phrA_fox]}
}},
fields:id
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]