[
https://issues.apache.org/jira/browse/SOLR-5488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13830816#comment-13830816
]
Mark Miller commented on SOLR-5488:
-----------------------------------
Take a look at AnalyticsRequestFactory:
The following tries to remove a QueryFacetRequest object from a Set<String>:
{code}
private static void addQueryFacet(List<QueryFacetRequest> currentList,
QueryFacetRequest queryFacet) {
Set<String> depends = queryFacet.getDependencies();
int place = 0;
for (QueryFacetRequest qfr : currentList) {
if (qfr.getDependencies().remove(queryFacet)) {
break;
}
place++;
depends.remove(qfr.getName());
}
currentList.add(place,queryFacet);
for (int count = place+1; count < currentList.size(); count++) {
currentList.get(count).getDependencies().remove(queryFacet.getName());
}
}
{code}
> Fix up test failures for Analytics Component
> --------------------------------------------
>
> Key: SOLR-5488
> URL: https://issues.apache.org/jira/browse/SOLR-5488
> Project: Solr
> Issue Type: Bug
> Affects Versions: 5.0, 4.7
> Reporter: Erick Erickson
> Assignee: Erick Erickson
> Attachments: SOLR-5488.patch, SOLR-5488.patch
>
>
> The analytics component has a few test failures, perhaps
> environment-dependent. This is just to collect the test fixes in one place
> for convenience when we merge back into 4.x
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]