Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Commit

Permalink
increased the facet results from 100 to unlimited
Browse files Browse the repository at this point in the history
  • Loading branch information
ktohme committed Jul 1, 2016
1 parent 81134c5 commit 6f41066
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import org.schedoscope.metascope.service.ViewEntityService;
import org.schedoscope.metascope.util.URLUtil;

//TODO this class should be refactored..
public class SolrQueryExecutor {

public static final String ID = "id";
Expand Down Expand Up @@ -186,7 +187,7 @@ public SolrQueryResult query(Map<String, String> params) {
Map<String, List<String>> activeFilterValues = new HashMap<String, List<String>>();

/*
* determine on which type is searched for (either 'Table' or 'Partition'
* determine on which type is searched for (either 'Table' or 'Partition')
*/
String typeFilterValue = params.get(TYPE);
filter.add(new SolrQueryParameter(FILTER_TYPE, TYPE, FilterType.EXCLUSIVE, FacetSort.COUNT));
Expand Down Expand Up @@ -284,6 +285,7 @@ public SolrQueryResult query(Map<String, String> params) {
if (queryFilter.getFacetSort().equals(FacetSort.INDEX)) {
query.add("f." + queryFilter.getName() + ".facet.sort", "index");
}
query.add("f." + queryFilter.getName() + ".facet.limit", "-1");
}

/* set facet queries */
Expand Down

0 comments on commit 6f41066

Please sign in to comment.