我的架构中有几个多值字段,但是当我搜索应该从这些字段产生结果的术语时,没有结果返回。
例如,在我的模式中有一个像这样的多值字段:
<field name="tag" type="text_general" indexed="true" stored="true" multiValued="true"/>
当我使用这样的查询对标签进行搜索时...
{!dismax q.op=AND}test
我在单值字段中得到“测试”的结果,但在多值字段中没有。我转储了从搜索中得到的结果,以验证存储的内容。
(matches when I search "test")
name: TEST 4
description: i match the query "test"
year: 2010
id: 61
(does not match when I search "test")
name: BEST 4
description: i do not match the query
year: 2010
id: 68
tags: (array)
0:test
1:test2
2:i'm a test
我无法通过搜索找到类似的问题,所以我觉得我一定错过了一些东西。谁能指出我正确的方向?