Skip to content

Commit

Permalink
Seeting default Solr response to be XML.
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCinquini committed Jan 17, 2019
1 parent 9a738a3 commit 4f6e241
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/java/main/esg/search/query/impl/solr/SolrUrlBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ public String buildSelectQueryString() throws MalformedURLException, Unsupported
// return type
if (input.getFormat().equals(SearchReturnType.SOLR_JSON.getMimeType())) {
sb.append("&wt=json");
}
} else {
sb.append("&wt=xml");
}

// if requested, sort records by timestamp descending
if (input.isSort()) {
Expand Down

0 comments on commit 4f6e241

Please sign in to comment.