: That is the default response format. If you would like to change that, : you could extend the search handler or post process the XML data. : Another option would be to use the javabin (if your app is java based) : and build xml the way your app would need.
there is actaully a more straight forward way to do stuff like this in trunk now, such that it can work with any response writer, using the "DocTransformer" API. there is already an "ExplainAugmenter" that can inline the explain info for a document, we just need someone to help write a corrisponding HighlightAugmenter , i've opened a Jira if anone wnats to take a crack at a patch... https://issues.apache.org/jira/browse/SOLR-3479 -Hoss