Mercurial > hg > LGDataverses
comparison src/main/java/edu/harvard/iq/dataverse/SolrQueryResponse.java @ 10:a50cf11e5178
Rewrite LGDataverse completely upgrading to dataverse4.0
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Tue, 08 Sep 2015 17:00:21 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 9:5926d6419569 | 10:a50cf11e5178 |
|---|---|
| 1 package edu.harvard.iq.dataverse; | |
| 2 | |
| 3 import java.util.ArrayList; | |
| 4 import java.util.HashMap; | |
| 5 import java.util.List; | |
| 6 import java.util.Map; | |
| 7 import java.util.logging.Logger; | |
| 8 | |
| 9 public class SolrQueryResponse { | |
| 10 | |
| 11 private static final Logger logger = Logger.getLogger(SolrQueryResponse.class.getCanonicalName()); | |
| 12 | |
| 13 private List<SolrSearchResult> solrSearchResults; | |
| 14 private Long numResultsFound; | |
| 15 private Long resultsStart; | |
| 16 private Map<String, List<String>> spellingSuggestionsByToken; | |
| 17 private List<FacetCategory> facetCategoryList; | |
| 18 private List<FacetCategory> typeFacetCategories; | |
| 19 Map<String, String> datasetfieldFriendlyNamesBySolrField = new HashMap<>(); | |
| 20 private Map<String, String> staticSolrFieldFriendlyNamesBySolrField; | |
| 21 private List<String> filterQueriesActual = new ArrayList<String>(); | |
| 22 private String error; | |
| 23 | |
| 24 public List<SolrSearchResult> getSolrSearchResults() { | |
| 25 return solrSearchResults; | |
| 26 } | |
| 27 | |
| 28 public void setSolrSearchResults(List<SolrSearchResult> solrSearchResults) { | |
| 29 this.solrSearchResults = solrSearchResults; | |
| 30 } | |
| 31 | |
| 32 public Map<String, List<String>> getSpellingSuggestionsByToken() { | |
| 33 return spellingSuggestionsByToken; | |
| 34 } | |
| 35 | |
| 36 public Long getNumResultsFound() { | |
| 37 return numResultsFound; | |
| 38 } | |
| 39 | |
| 40 public void setNumResultsFound(Long numResultsFound) { | |
| 41 this.numResultsFound = numResultsFound; | |
| 42 } | |
| 43 | |
| 44 public Long getResultsStart() { | |
| 45 return resultsStart; | |
| 46 } | |
| 47 | |
| 48 public void setResultsStart(Long resultsStart) { | |
| 49 this.resultsStart = resultsStart; | |
| 50 } | |
| 51 | |
| 52 public void setSpellingSuggestionsByToken(Map<String, List<String>> spellingSuggestionsByToken) { | |
| 53 this.spellingSuggestionsByToken = spellingSuggestionsByToken; | |
| 54 } | |
| 55 | |
| 56 public List<FacetCategory> getFacetCategoryList() { | |
| 57 return facetCategoryList; | |
| 58 } | |
| 59 | |
| 60 public void setFacetCategoryList(List<FacetCategory> facetCategoryList) { | |
| 61 this.facetCategoryList = facetCategoryList; | |
| 62 } | |
| 63 | |
| 64 public List<FacetCategory> getTypeFacetCategories() { | |
| 65 return typeFacetCategories; | |
| 66 } | |
| 67 | |
| 68 public void setTypeFacetCategories(List<FacetCategory> typeFacetCategories) { | |
| 69 this.typeFacetCategories = typeFacetCategories; | |
| 70 } | |
| 71 | |
| 72 public Map<String, String> getDatasetfieldFriendlyNamesBySolrField() { | |
| 73 return datasetfieldFriendlyNamesBySolrField; | |
| 74 } | |
| 75 | |
| 76 void setDatasetfieldFriendlyNamesBySolrField(Map<String, String> datasetfieldFriendlyNamesBySolrField) { | |
| 77 this.datasetfieldFriendlyNamesBySolrField = datasetfieldFriendlyNamesBySolrField; | |
| 78 } | |
| 79 | |
| 80 public Map<String, String> getStaticSolrFieldFriendlyNamesBySolrField() { | |
| 81 return staticSolrFieldFriendlyNamesBySolrField; | |
| 82 } | |
| 83 | |
| 84 void setStaticSolrFieldFriendlyNamesBySolrField(Map<String, String> staticSolrFieldFriendlyNamesBySolrField) { | |
| 85 this.staticSolrFieldFriendlyNamesBySolrField = staticSolrFieldFriendlyNamesBySolrField; | |
| 86 } | |
| 87 | |
| 88 public List<String> getFilterQueriesActual() { | |
| 89 return filterQueriesActual; | |
| 90 } | |
| 91 | |
| 92 public void setFilterQueriesActual(List<String> filterQueriesActual) { | |
| 93 this.filterQueriesActual = filterQueriesActual; | |
| 94 } | |
| 95 | |
| 96 public String getError() { | |
| 97 return error; | |
| 98 } | |
| 99 | |
| 100 public void setError(String error) { | |
| 101 this.error = error; | |
| 102 } | |
| 103 | |
| 104 } |
