-
Bug
-
Resolution: Fixed
-
Blocker
-
4.6.0
-
None
-
None
-
4.6 M5
I have the following facet : `<criteria field-ref="structure/region"/>` (region is a content property (old indexing field) but I don't think this is the problem), and I get the following error:
Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.solr.client.solrj.response.FacetField.getValues()" because "solrFacetField" is null at org.ametys.cms.search.solr.SearcherFactory$Searcher.getFacetResults(SearcherFactory.java:807) at org.ametys.cms.search.solr.SearcherFactory$Searcher._buildResults(SearcherFactory.java:441) at org.ametys.cms.search.solr.SearcherFactory$Searcher.searchWithFacets(SearcherFactory.java:427) at org.ametys.cms.search.content.ContentSearcherFactory$SearchModelContentSearcher.searchWithFacets(ContentSearcherFactory.java:271) at org.ametys.cms.search.cocoon.SearchAction.doSearch(SearchAction.java:207) at org.ametys.cms.search.cocoon.SearchAction.act(SearchAction.java:137) ... 87 more
On debugging, fieldName to get solrFacetField is equals to structure/structure/region, it seems that structure appears twice