我正在使用Apache Solr。我必须在Solr的返回结果中保留HTML格式以及所有原始HTML标记。我怎么能这样做?
提前致谢。
答案 0 :(得分:0)
如果为任何面向文本的字段(TextField,StrField)设置stored = true,您将能够以原始格式检索它。索引/标记化/过滤不会影响检索到的字段。语法是:
<field name="examplestringfieldstored" type="string" indexed="true" stored="true" required="true" />