开发者

Problem with Solr dynamic/copy Field

开发者 https://www.devze.com 2023-01-15 19:05 出处:网络
I have a problem tha开发者_如何学编程t i have a dynamic field in schema.xml as <dynamicField name=\"sec_*\" type=\"text\" indexed=\"true\" stored=\"false\"/>

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

精彩评论

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

关注公众号