Quantcast
Channel: SCN : Popular Discussions - SAP Enterprise Portal: Content Management and Collaboration
Viewing all articles
Browse latest Browse all 1826

Issue with Muli-Valued property while searching with KM APIs

$
0
0

Hello,

 

I'm doing a KM Folder search using KM APIs.  The code looks similar to this

 

=====================================================

IGenericQueryFactory queryFactory = GenericQueryFactory.getInstance();     IQueryBuilder queryBldr = queryFactory.getQueryBuilder();     IPropertyName ipn = new PropertyName("http://sapportals.com/xmlns/cm", "lang");     IQueryExpression queryExpr =          queryBldr.like(ipn, language.toLowerCase());                         IGenericQuery query = queryFactory.toGenericQuery(queryExpr);     IResourceList result = query.execute(     collection, Integer.MAX_VALUE,7,false);

======================================================

 

Issue: If the property is set as multi-value, then the search does not return any results. 

 

i.e. In the above code example, if the property "lang" is multi-valued then the search gets no results.

 

Has anyone run into this issue?

 

Any help on this would be much appreciated.

Thanks,

Harman


Viewing all articles
Browse latest Browse all 1826

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>