配置以在Solr结果中维护HTML文档的原始格式?

时间:2014-06-03 14:24:16

标签: html apache solr

我正在使用Apache Solr。我必须在Solr的返回结果中保留HTML格式以及所有原始HTML标记。我怎么能这样做?

提前致谢。

1 个答案:

答案 0 :(得分:0)

如果为任何面向文本的字段(TextField,StrField)设置stored = true,您将能够以原始格式检索它。索引/标记化/过滤不会影响检索到的字段。语法是:

<field name="examplestringfieldstored" type="string" indexed="true" stored="true" required="true" />