Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
色调场的Solr高亮显示_Solr - Fatal编程技术网

色调场的Solr高亮显示

色调场的Solr高亮显示,solr,Solr,我在突出显示方面遇到了一个奇怪的问题。我有一个简单的配置,大致如下: <str name="defType">edismax</str> <str name="qf">all_text</str> ... <str name="hl">on</str> <str name="hl.fl">*</str> <bool name="hl.requireFieldMatch">false<

我在突出显示方面遇到了一个奇怪的问题。我有一个简单的配置,大致如下:

<str name="defType">edismax</str>
<str name="qf">all_text</str>
...
<str name="hl">on</str>
<str name="hl.fl">*</str>
<bool name="hl.requireFieldMatch">false</bool>
以及:



但在搜索结果中不突出显示它。

您使用的是哪个版本的Solr?看来你遇到了麻烦

更新


您可以尝试使用字符串类型的copyfield进行高亮显示,直到问题得到解决。

我使用的是solr 3.6。我认为你是对的,这与Solr 4中的问题相同。3.6中也存在这个问题。
<field name="age" type="tint" indexed="true" stored="true" />
<copyField source="age" dest="all_text" />