Changeset 30057 for gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/service/GS2SolrRetrieve.java
- Timestamp:
- 2015-07-25T07:27:52+12:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/service/GS2SolrRetrieve.java
r24641 r30057 20 20 21 21 import org.apache.log4j.Logger; 22 import org.greenstone.gsdl3.core.GSException; 23 import org.greenstone.gsdl3.util.GSXML; 24 import org.w3c.dom.Document; 25 import org.w3c.dom.Element; 26 import org.w3c.dom.Text; 22 27 23 28 /** Does excatly the same as GS2LuceneRetrieve. Wrap up in a bit of … … 37 42 super(); 38 43 } 44 @Override 45 protected Element getNodeContent(Document doc, String doc_id, String lang) throws GSException 46 { 47 // IF we need only process our content by macro resolver 48 if (highlightedNode != null) 49 { 50 String highlightedTextContent = highlightedNode.getTextContent(); 51 52 //Process text 53 highlightedTextContent = resolveTextMacros(highlightedTextContent, doc_id, lang); 54 //Create result element 55 Element highlighted_node = doc.createElement(GSXML.NODE_CONTENT_ELEM); 56 Text hlt = doc.createTextNode(highlightedTextContent); 57 highlighted_node.appendChild(hlt); 58 return highlighted_node; 59 } 60 return super.getNodeContent(doc, doc_id, lang); 61 62 } 39 63 } 40 64
Note:
See TracChangeset
for help on using the changeset viewer.