[
https://issues.apache.org/jira/browse/SOLR-9685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16508275#comment-16508275
]
Dr Oleg Savrasov commented on SOLR-9685:
----------------------------------------
Is it supposed to work with BJQ?
I'm trying to replace
{code:java}
curl http://localhost:8983/solr/collection1/query -d 'json={
query : "{!parent tag=top filters=$child.fq which=scope:product
v=$childquery}",
filter : "{!tag=top}category:clothes",
params:{
childquery : "scope:sku",
child.fq : "{!tag=color}color:black"
}
}'
{code}
with
{code:java}
curl http://localhost:8983/solr/collection1/query -d 'json={
query : "{!parent tag=top filters=$child.fq which=scope:product
v=$childquery}",
filter : "{!tag=top}category:clothes",
params:{
childquery : "scope:sku",
child.fq : "{ "#color" : "color:black" }"
}
}'
{code}
and have an exception
{code:java}
"msg":"org.apache.solr.search.SyntaxError: Cannot parse '{ ': Encountered
\"<EOF>\" at line 1, column 2.\nWas expecting one of:\n \"TO\" ...\n
<RANGE_QUOTED> ...\n <RANGE_GOOP> ...\n ",
"code":400}}
{code}
> tag a query in JSON syntax
> --------------------------
>
> Key: SOLR-9685
> URL: https://issues.apache.org/jira/browse/SOLR-9685
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Facet Module, JSON Request API
> Reporter: Yonik Seeley
> Assignee: Yonik Seeley
> Priority: Major
> Fix For: 7.4, master (8.0)
>
> Attachments: SOLR-9685.patch, SOLR-9685.patch
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> There should be a way to tag a query/filter in JSON syntax.
> Perhaps these two forms could be equivalent:
> {code}
> "{!tag=COLOR}color:blue"
> { tagged : { COLOR : "color:blue" }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]