cancel
Showing results for 
Search instead for 
Did you mean: 

Search by (custom) content type

ady
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

ady
Champ in-the-making
Champ in-the-making
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();