Changed lucene snippet query to use POST to avoid error 413

This commit is contained in:
Jeff Wallace 2013-10-07 16:56:42 -04:00
parent ea4e30e2ee
commit 24dc05b4b2

View File

@ -372,7 +372,7 @@ public class LuceneQuery implements KeywordSearchQuery {
q.setParam("hl.maxAnalyzedChars", Server.HL_ANALYZE_CHARS_UNLIMITED); q.setParam("hl.maxAnalyzedChars", Server.HL_ANALYZE_CHARS_UNLIMITED);
try { try {
QueryResponse response = solrServer.query(q); QueryResponse response = solrServer.query(q, METHOD.POST);
Map<String, Map<String, List<String>>> responseHighlight = response.getHighlighting(); Map<String, Map<String, List<String>>> responseHighlight = response.getHighlighting();
Map<String, List<String>> responseHighlightID = responseHighlight.get(contentIDStr); Map<String, List<String>> responseHighlightID = responseHighlight.get(contentIDStr);
if (responseHighlightID == null) { if (responseHighlightID == null) {