diff --git a/src/main/java/edu/harvard/iq/dataverse/SearchIncludeFragment.java b/src/main/java/edu/harvard/iq/dataverse/SearchIncludeFragment.java index a8e83ba89dc..50f22293030 100644 --- a/src/main/java/edu/harvard/iq/dataverse/SearchIncludeFragment.java +++ b/src/main/java/edu/harvard/iq/dataverse/SearchIncludeFragment.java @@ -95,6 +95,7 @@ public class SearchIncludeFragment { // private boolean showUnpublished; List filterQueriesDebug = new ArrayList<>(); // private Map friendlyName = new HashMap<>(); + private String errorFromSolr; /** * @todo: @@ -288,6 +289,7 @@ public void search(boolean onlyDataRelatedToMe) { this.datasetfieldFriendlyNamesBySolrField = solrQueryResponse.getDatasetfieldFriendlyNamesBySolrField(); this.staticSolrFieldFriendlyNamesBySolrField = solrQueryResponse.getStaticSolrFieldFriendlyNamesBySolrField(); this.filterQueriesDebug = solrQueryResponse.getFilterQueriesActual(); + this.errorFromSolr = solrQueryResponse.getError(); paginationGuiStart = paginationStart + 1; paginationGuiEnd = Math.min(page * paginationGuiRows,searchResultsCount); List searchResults = solrQueryResponse.getSolrSearchResults(); @@ -904,4 +906,13 @@ public String getNewSelectedTypes(String typeClicked) { return combine(arr, ":"); } + + public String getErrorFromSolr() { + return errorFromSolr; + } + + public void setErrorFromSolr(String errorFromSolr) { + this.errorFromSolr = errorFromSolr; + } + } diff --git a/src/main/webapp/search-include-fragment.xhtml b/src/main/webapp/search-include-fragment.xhtml index bcc77fb397e..b7a4023c351 100644 --- a/src/main/webapp/search-include-fragment.xhtml +++ b/src/main/webapp/search-include-fragment.xhtml @@ -192,6 +192,7 @@

+