02-26-2014 03:05 AM
StringBuffer cadena = new StringBuffer();
cadena.append( "SELECT * FROM my:customtype as t join my:customaspect as d on d.cmis:objectId = t.cmis:objectId where d.my:dateDocument = TIMESTAMP '"+myDate+"T00:00:00.000-00:00' ");
ItemIterable<QueryResult> results = session.query(cadena.toString(), false);
for (QueryResult qResult : results.skipTo(10).getPage(10)) {
———
}
<index enabled="true">
<atomic>false</atomic>
<stored>false</stored>
<tokenised>true</tokenised>
</index>
<?xml version="1.0" encoding="UTF-8"?>
<model name="my:model" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>my model</description>
<author>ir</author>
<version>1.0</version>
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
</imports>
<namespaces>
<namespace uri="dynamic.model" prefix="my" />
</namespaces>
<types>
<type name="my:document">
<title>my Document</title>
<parent>cm:content</parent>
<mandatory-aspects>
<aspect>my:customaspect</aspect>
</mandatory-aspects>
</type>
<type name="my:customtype">
<title>my type</title>
<parent>my:document</parent>
</type>
</types>
<aspect name="my:customaspect">
<title>my Data</title>
<properties>
<property name="my:title">
<type>d:text</type>
<index enabled="true">
<atomic>false</atomic>
<stored>false</stored>
<tokenised>true</tokenised>
</index>
</property>
<property name="my:dateDocument">
<type>d:date</type>
<index enabled="true">
<atomic>false</atomic>
<stored>false</stored>
<tokenised>true</tokenised>
</index>
</property>
</properties>
</aspect>
</aspects>
02-26-2014 09:15 AM
<tokenised>false</tokenised>
or
<tokenised>both</tokenised>
02-26-2014 11:37 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.