Skip to content

Commit

Permalink
use isSearchByCollection to build the query
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbicho committed Jun 26, 2020
1 parent 6614610 commit bd7d205
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private SolrQuery convertSearchQuery(SearchQuery searchQuery) {
// enable highlighting
solrQuery.setHighlight(true);

if (searchQuery.getCollection() != null) {
if (searchQuery.isSearchByCollection()) {
boolean multipleCollection = false;
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("collection:");
Expand Down

0 comments on commit bd7d205

Please sign in to comment.