Skip to content

Commit

Permalink
Merge c88e724 into f2bd803
Browse files Browse the repository at this point in the history
  • Loading branch information
jsavell authored Apr 10, 2020
2 parents f2bd803 + c88e724 commit 73c107e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/tamu/sage/service/SolrDiscoveryService.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ public DiscoveryContext buildDiscoveryContext(DiscoveryView discoveryView, Strin
if (search.getField().isEmpty() && search.getValue().isEmpty()) {
query = "*:*";
} else if (search.getField().isEmpty()) {
query = ClientUtils.escapeQueryChars(search.getValue());
query = search.getValue();
} else {
query = search.getField() + ":" + ClientUtils.escapeQueryChars(search.getValue());
query = search.getField() + ":" + search.getValue();
}

SolrQuery solrQuery = new SolrQuery(query);
Expand Down

0 comments on commit 73c107e

Please sign in to comment.