查询文件夹查询示例

可为所创建的查询文件夹构建查询。执行时,查询会基于所指定的条件检索存储器中存储的对象。可指定全文搜索的条件,其中包括存储库中对象的数据和元数据。

在指定日期后创建的对象

以下查询会检索 2004 年 1 月 1 日之后所创建的全部文档组件:


<ishfolderquery>
	<!--Metadata Query -->
	<ishfields>
		<ishfield name="CREATED-ON" level="logical" ishoperator="greaterthan">01/01/2004</ishfield>
	</ishfields>
</ishfolderquery>
	

特定用户处理的映射

下述查询会检索所有映射,其中协调人为用户 frankc

<ishfolderquery>
	<!--Object type filter -->
	<ishobjecttypes>
		<ishobjecttype ishtype="ISHMasterDoc"/>
	</ishobjecttypes>
	<!--Metadata Query -->
	<ishfields>
		<ishfield name="FCOORDINATOR" level="logical" ishoperator="equal">frankc</ishfield>
	</ishfields>
</ishfolderquery>
	

标识符内特定内容主题

下述查询会检索所有主题,其中主题标识符以 DN 开头,管理员为 frankc

<ishfolderquery>
	<ishobjecttypes>
		<ishobjecttype ishtype="ISHModule"/>
	</ishobjecttypes>
	<!--Metadata Query -->
	<ishfields>
		<ishfield name="CARDELEMENT" level="logical" ishoperator="like">DN%</ishfield>
		<ishfield name="FCOORDINATOR" level="logical">frankc</ishfield>
	</ishfields>
</ishfolderquery>

标题中带“安装”文字的对象

下述查询会检索所有符合以下条件的映射和主题:
  • 带“安装”文字的标题
  • 协调者定义为 John DoeAlbert Einstein

<ishfolderquery>
	<!--Object type filter -->
	<ishobjecttypes>
		<ishobjecttype ishtype="ISHMasterDoc"/>
		<ishobjecttype ishtype="ISHModule"/>
	</ishobjecttypes>
	<!--Metadata Query -->
	<ishfields>
		<ishfield name="FTITLE" level="logical" ishoperator="like">%install%</ishfield>
		<ishfield name="FCOORDINATOR" level="logical" ishoperator="in">John Doe, Albert Einstein</ishfield>
	</ishfields>
</ishfolderquery>