[DS-3695] Replace removed default schema settings with query parameters.

This commit is contained in:
Mark H. Wood
2019-02-13 10:56:13 -05:00
parent 732bc7d92f
commit 69fcb0ebce
2 changed files with 18 additions and 1 deletions

View File

@@ -971,6 +971,15 @@ public class SolrLoggerServiceImpl implements SolrLoggerService, InitializingBea
.setFacetMinCount(1);
addAdditionalSolrYearCores(solrQuery);
// Can no longer set default field in schema
if (null == solrQuery.get("df")) {
solrQuery.add("df", "id");
}
// Can no longer set default match operator in schema
if (null == solrQuery.get("q.op")) {
solrQuery.add("q.op", "AND");
}
// Set the date facet if present
if (dateType != null) {
solrQuery.setParam("facet.date", "time")