01-08-2014 08:08 PM
<type name="cm:content">
<title>Content</title>
<parent>cm:cmobject</parent>
<archive>true</archive>
<properties>
<property name="cm:content">
<type>d:content</type>
<mandatory>false</mandatory>
<!– Although content is marked as indexed atomically it may end up asynchronous –>
<!– if the content conversion will take too long. Content that does not require conversion –>
<!– to UTF8 test/plain will always be indexed atomically –>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>true</tokenised>
</index>
</property>
<property name="cm:mycustomprop1">
<title>My Custom Property</title>
<type>d:text</type>
<protected>false</protected>
<mandatory>false</mandatory>
<index enabled="true">
<atomic>true</atomic>
<stored>true</stored>
<tokenised>true</tokenised>
</index>
</property>
</properties>
</type>
SearchParameters params = new SearchParameters();
params.addStore(storeRef);
params.setLanguage(SearchService.LANGUAGE_LUCENE);
params.setQuery("@cm\\:mycustomprop1:\"ZACK\""); /* This returns 0 hits?!? */
//params.setQuery("TYPE:\"cm:content\""); /* This returns the 2 nodes as expected. */
ResultSet results = searchService.query(params);
01-09-2014 03:04 AM
01-13-2014 05:56 PM
01-17-2014 03:49 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.