[ 
https://issues.apache.org/jira/browse/SOLR-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13868310#comment-13868310
 ] 

Joel Bernstein commented on SOLR-5416:
--------------------------------------

Actually the reason why I had to disable the QueryResultCache for the 
CollapsingQParserPlugin is this bug. You could trigger this bug by also doing

1) Executing a query with the CollapsingQParsePlugin combined with facets.
2) The query gets cached in the QueryResultCache. But the docset does not (this 
is normal for Solr).
3) Execute the same query again, retrieve the query from the QueryResultCache 
but the docset needs to be regenerated.
4) Regenerating the docset threw the same exception you reported in this ticket 
because they use the same method.

I knew this bug existed, so I disabled the queryResultCache for the 
CollapsingQParserPlugin. But I didn't know tag/exclude would trigger the same 
bug. You pointed that out.

Now that this issue is fixed, the CollapsingQParserPlugin will work fine with 
the QueryResultCache. But I haven't re-enabled it. If you want, you can create 
another ticket for that. I was planning on doing this for Solr 4.7.

 

> CollapsingQParserPlugin breaks Tag/Exclude Faceting
> ---------------------------------------------------
>
>                 Key: SOLR-5416
>                 URL: https://issues.apache.org/jira/browse/SOLR-5416
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.6
>            Reporter: David
>            Assignee: Joel Bernstein
>              Labels: group, grouping
>             Fix For: 5.0, 4.6.1
>
>         Attachments: CollapseQParserPluginPatch-solr-4.5.1.patch, 
> CollapsingQParserPlugin.java, SOLR-5416.patch, SOLR-5416.patch, 
> SOLR-5416.patch, SOLR-5416.patch, SOLR-5416.patch, SOLR-5416.patch, 
> SolrIndexSearcher.java, TestCollapseQParserPlugin.java
>
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> Trying to use CollapsingQParserPlugin with facet tagging throws an exception. 
> {code}
>  ModifiableSolrParams params = new ModifiableSolrParams();
>     params.add("q", "*:*");
>     params.add("fq", "{!collapse field=group_s}");
>     params.add("defType", "edismax");
>     params.add("bf", "field(test_ti)");
>     params.add("fq","{!tag=test_ti}test_ti:5");
>     params.add("facet","true");
>     params.add("facet.field","{!ex=test_ti}test_ti");
>     assertQ(req(params), "*[count(//doc)=1]", 
> "//doc[./int[@name='test_ti']='5']");
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

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

Reply via email to