Revision 7720
Added by Jing Tao over 11 years ago
src/edu/ucsb/nceas/metacat/index/MetacatSolrIndex.java | ||
---|---|---|
133 | 133 |
if (SolrQueryService.isSupportedWT(wt)) { |
134 | 134 |
// just handle as normal solr query |
135 | 135 |
|
136 |
inputStream = SolrQueryServiceController.getInstance().query(query, solrParams, authorizedSubjects);
|
|
136 |
inputStream = SolrQueryServiceController.getInstance().query(solrParams, authorizedSubjects); |
|
137 | 137 |
} |
138 | 138 |
else { |
139 | 139 |
// assume it is a skin name |
... | ... | |
143 | 143 |
wt = SolrQueryResponseWriterFactory.XML; |
144 | 144 |
ModifiableSolrParams msp = new ModifiableSolrParams(solrParams); |
145 | 145 |
msp.set(SolrQueryService.WT, wt); |
146 |
String newQuery = msp.toString(); |
|
147 |
inputStream = SolrQueryServiceController.getInstance().query(newQuery,msp, authorizedSubjects); |
|
146 |
inputStream = SolrQueryServiceController.getInstance().query(msp, authorizedSubjects); |
|
148 | 147 |
|
149 | 148 |
// apply the stylesheet (XML->HTML) |
150 | 149 |
DBTransform transformer = new DBTransform(); |
Also available in: Unified diff
Use the new query(SolrParams param) method of the SolrQueryServiceController.