Skip to Content
0
Former Member
Jun 08, 2006 at 04:08 PM

Search for Property in own coding

48 Views

Hello,

for my custom search component i would like to search for an property. I will the user give the possibility to search for the Contenttype. For example PDF, html or Text.

I try this (but donts works)

private IQueryEntryList createQuery() throws WcmException {
SearchQueryListBuilder sqb2 = new SearchQueryListBuilder();
sqb2.setSelectedCustomProps("sapportals.com/xmlns/cm:contenttype(value"+ContentType.TEXT_PLAIN+")");
return sqb2.buildSearchQueryList();
}

The other question regarding this problem i have is: How can i connect the property query as AND with the searchwords.

Any help is welcome,

best regards,

Patrick

Message was edited by: Patrick Höfer