AdvancedSearch功能中的日期搜索:Alfresco
我在alfresco尝试了高级搜索功能。我无法搜索具有日期条件的数据。。 我可以使用其他字段进行搜索,但不能使用日期条件 如何使用日期字段搜索数据 下面是我的定制模型 共享配置custom.xmlAdvancedSearch功能中的日期搜索:Alfresco,alfresco,alfresco-share,advanced-search,Alfresco,Alfresco Share,Advanced Search,我在alfresco尝试了高级搜索功能。我无法搜索具有日期条件的数据。。 我可以使用其他字段进行搜索,但不能使用日期条件 如何使用日期字段搜索数据 下面是我的定制模型 共享配置custom.xml <config evaluator="model-type" condition="my:test"> <forms> <form id="search"> <field-visibili
<config evaluator="model-type" condition="my:test">
<forms>
<form id="search">
<field-visibility>
<show id="my:corDate" />
</field-visibility>
<appearance>
<field id="my:corDate">
<control template="/org/alfresco/components/form/controls/date.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
<type name="my:test">
<title>Test</title>
<parent>cm:content</parent>
<properties>
<property name="my:corDate">
<title>Correspondence Date</title>
<type>d:date</type>
<mandatory>true</mandatory>
<index enabled="true">
<atomic>true</atomic>
<stored>true</stored>
<tokenised>both</tokenised>
</index>
</property>
</properties>
</type>
my:corDate d:date的数据类型
以下是高级搜索代码
<config replace="true" evaluator="string-compare" condition="AdvancedSearch">
<advanced-search>
<forms>
<form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
<form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
<form labelId="type.my_test" descriptionId="search.form.desc.my_test">my:test</form>
</forms>
</advanced-search>
</config>
cm:内容
cm:文件夹
我的:测试
customModel.xml
<config evaluator="model-type" condition="my:test">
<forms>
<form id="search">
<field-visibility>
<show id="my:corDate" />
</field-visibility>
<appearance>
<field id="my:corDate">
<control template="/org/alfresco/components/form/controls/date.ftl" />
</field>
</appearance>
</form>
</forms>
</config>
<type name="my:test">
<title>Test</title>
<parent>cm:content</parent>
<properties>
<property name="my:corDate">
<title>Correspondence Date</title>
<type>d:date</type>
<mandatory>true</mandatory>
<index enabled="true">
<atomic>true</atomic>
<stored>true</stored>
<tokenised>both</tokenised>
</index>
</property>
</properties>
</type>
试验
cm:内容
通信日期
d:日期
真的
真的
真的
二者都
如何解决此问题..如何使用日期条件进行搜索
谢谢您提到了配置,也请提及问题。问题是,如果我使用日期条件搜索内容,则结果未找到。如果选择日期为2015年3月9日,则未找到任何结果。但我有一个文档有这个日期…你们提到了配置,也请提及问题。问题是若我使用日期条件搜索内容,那个么结果并没有找到。如果选择日期为2015年3月9日,则未找到任何结果。但我有一份文件是关于这个日期的。。。