Browse
Hyland Connect
Hyland Community
Help
Sign In
What's New
Platform
Content Innovation Cloud
Content Innovation Cloud Blog
Alfresco
Alfresco Forum
Alfresco Blog
Alfresco Archive
Nuxeo
Nuxeo Forum
Nuxeo Blog
Community Blog
Search by (custom) content type
ady
Champ in-the-making
Options
Mark as New
Subscribe to RSS Feed
Permalink
Print
04-05-2007
04:10 PM
I've created a few custom types and I'm trying to create a Lucene query to target content of this type:
Example:
type name = {
http://zzz.yyyy.com/model/content/1.0}testtype
workspace://SpacesStore
UID: d72324d8-e22a-11db-b2ad-8ffa3b3af9d6
Is there a way to search for content matching this content type?
I've seen the following somewhere but I wish someone would elaborate.
"+TYPE:\"testtype\"";
Thanks
Labels:
Labels:
Archive
APIs
ECM Archive
All forum topics
Previous Topic
Next Topic
1 REPLY
1
ady
Champ in-the-making
Options
Mark as New
Subscribe to RSS Feed
Permalink
Print
04-05-2007
04:18 PM
In case anyone wants to know:
String qString = "TYPE:\"{
http://zzz.yyyy.com/model/content/1.0}testtype\
"";
Query query = new Query(Constants.QUERY_LANG_LUCENE,qString );
QueryResult result = repository.query(STORE, query, true);
ResultSet rs = result.getResultSet();
ResultSetRow[] rows = rs.getRows();
Post Reply