04-23-2015 05:26 AM
String query = "PATH: \"/" + myPath + "/cm:" + folder + "//.\"" + " AND TYPE:\"" + myType + "\""
+ " AND =@mod\\:" + myCustomProperty + ":\"" + searchValue + "\"";
SearchParameters sp = new SearchParameters();
sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);
sp.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO);
sp.setQuery(query);
ResultSet results = getSearchService().query(sp);
<namespace uri="myCustomNS" prefix="mod" />
<property name="mod:myCustomProperty" editVisible="true" createVisible="true" editable="true" inheritable="false" calculable="true">
<title>My custom property</title>
<type>d:text</type>
<mandatory>true</mandatory>
<index enabled="true">
<atomic>true</atomic>
<stored>false</stored>
<tokenised>both</tokenised>
</index>
<constraints>
<constraint ref="desal:stringLength100" />
</constraints>
</property>
04-23-2015 02:03 PM
06-18-2015 05:40 AM
QueryParser.escape(value)
value.replaceAll(" ", "\\_x0020_");
value.replaceAll(" ", "\\u00A0");
06-22-2015 07:39 AM
06-23-2015 07:41 AM
<tokenised>false</tokenised>
, and using modropertyName:"different values" syntax, may be works and don't tokenize the value? Or the query tokenize the results even the false on the tokenised xml tag?
<type name="cm:content">
<title>Content</title>
<parent>cm:cmobject</parent>
<properties>
<property name="cm:content">
<type>d:content</type>
<mandatory>false</mandatory>
<index enabled="true">
<atomic>false</atomic>
<stored>false</stored>
<tokenised>true</tokenised>
</index>
</property>
</properties>
</type>
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.