Ignore:
Timestamp:
08/14/15 12:04:16 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:

multi value search for a single facet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.3-oeaw/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/service/solr/impl/SolrFacetFieldsService.java

    r4932 r6456  
    4747    @Override
    4848    public List<FacetField> getFacetFields(QueryFacetsSelection selection, List<String> facets, int valueLimit) {
    49         return searchResultsDao.getFacets(queryFatory.createFacetQuery(selection, facets, valueLimit));
     49        return (selection.getExcludedFacet() == null)?
     50        searchResultsDao.getFacets(queryFatory.createFacetQuery(selection, facets, valueLimit)) :
     51        searchResultsDao.getFacets(queryFatory.createFacetQuery(selection, facets, valueLimit),
     52                        queryFatory.createExludedFacetQuery(selection, selection.getExcludedFacet(), valueLimit));
    5053    }
    5154
Note: See TracChangeset for help on using the changeset viewer.