Morten Staffeldt created SOLR-17796:
---------------------------------------

             Summary: Exclusion tag on fq collapse does not work with q.op OR
                 Key: SOLR-17796
                 URL: https://issues.apache.org/jira/browse/SOLR-17796
             Project: Solr
          Issue Type: Bug
          Components: query, query parsers
    Affects Versions: 9.8.1
            Reporter: Morten Staffeldt


Im using tag and collapse on a filterQuery.
The tag is to be used to exclude the collapse on the facets, so i avoid the it 
collapsing on whatever item it collapses on.This all seems to work when using 
q.op OR.
If i however change it to q.op AND i get the following exception  -->
{{}}
{code:java}
java.lang.UnsupportedOperationException: Query 
CollapsingPostFilter(field=workid, nullPolicy=ignore, 
GroupHeadSelector(selectorText=score, type=SCORE), size=100000) does not 
implement createWeight{code}

Can be reproduced by
{code:java}

{code}
{{#define col
curl --request POST \
--url http://localhost:8983/api/collections \
--header 'Content-Type: application/json' \
--data '\{
  "name": "bugtest",
  "numShards": 1,
  "replicationFactor": 1
}'

#create schema
 curl --request POST \
  --url http://localhost:8983/api/collections/bugtest/schema \
  --header 'Content-Type: application/json' \
  --data '\{
  "add-field": [
    {"name": "someid", "type": "string", "indexed":true, "required":true, 
"stored":true},
    \{"name": "doc_type", "type": "string", "multiValued":false, 
"indexed":true, "required":true, "stored":true}
  ]
}'}}
{code:java}

{code}
{{Works with q.op OR --> 
http://localhost:8983/solr/#/bugtest/query?q=*:*&q.op=OR&indent=true&fq=%7B!tag%3Dcollapse_tag%7D%7B!collapse%20field%3Dsomeid%7D&useParams=}}
{code:java}

{code}
{{Does not work qith q.op AND --> 
http://localhost:8983/solr/#/bugtest/query?q=*:*&q.op=AND&indent=true&fq=%7B!tag%3Dcollapse_tag%7D%7B!collapse%20field%3Dsomeid%7D&useParams=}}

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to