自定义属性-禁用使用MultipleValues删除重复值 [英] Custom Property - Disabling duplicate value removal with multipleValues

查看:145
本文介绍了自定义属性-禁用使用MultipleValues删除重复值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义属性,它是字符串的向量.我注意到,如果字符串重复,它将从向量中删除.即" foo; bar; foo"将导致"foo; bar"被索引.是否可以禁用此重复删除?

< propertyDescription name ="Foo.Type"; formatID ="{67472C56-47AB-4823-A5B1-47DDA8061162}" propID ="102">
< searchInfo inInvertedIndex ="true"; isColumn ="true"; columnIndexType ="OnDisk"/>
< typeInfo type ="String" multipleValues ="true" isViewable =假". isInnate ="true"/>
.</propertyDescription>

谢谢!属性系统中的字符串向量属性是集合的属性,而不是列表的属性.这意味着我们要进行重新排序和重复删除.但是,其他类型具有列表语义(即,如果您编写枚举并使用数字值,则可以解决此问题.)


I have a custom property that is a vector of strings.  I noticed that if the string is repeated it will be removed from the vector. i.e. "foo;bar;foo" will result in "foo;bar" being indexed.  Is there a way to disable this duplicate removal?

        <propertyDescription name="Foo.Type" formatID="{67472C56-47AB-4823-A5B1-47DDA8061162}" propID="102">
            <searchInfo inInvertedIndex="true" isColumn="true" columnIndexType="OnDisk"/>
            <typeInfo type="String" multipleValues="true" isViewable="false" isInnate="true"/>
        </propertyDescription>

Thanks!

解决方案

Unfortunately, the semantics of string vector properties in the property system are those of sets rather than lists. This means that we do reordering and duplicate removal. However, other types have list semantics (i.e. if you write an enum and use numeric values instead, you'll be able to work around this.)


这篇关于自定义属性-禁用使用MultipleValues删除重复值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆