开发者

Problem with Solr dynamic/copy Field

I have a problem tha开发者_如何学编程t i have a dynamic field in schema.xml

as <dynamicField name="sec_*" type="text" indexed="true" stored="false"/>

and <field name="Contents" type="text" indexed="true" stored="false" multiValued="true"/>

dynamic field is copied to Contents field as

<copyField source="sec_*" dest="Contents"/>

now when i perform search using some dynamic fields like "sec_1069:risk" it filters documents that does not contains that dynamic field called sec_1069 can any body help how i can force this thing that solr should not filter documents that don't have that dynamic field.


Try sec_1069:risk OR -sec_1069:[* TO *]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜