cancel
Showing results for 
Search instead for 
Did you mean: 

TREX Search using Custom Properties

Former Member
0 Kudos

Hi,

I have a Web Dynpro application that uses trex search to find files via Custom Properties.

The code works fine but when I try to search documents whose property PropX = "*" it returns all documents in folder, even when not all of them have PropX assigned.

I don't know if it is a correct behaviour; in case it is, what would be a way to find 'any' document that has a PropX associate with it, no matter its value, using TREX.

The code was taken from document: "Using the KM Indexmanagement APIs for searching with TREX", found in: www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/kmc/using the km indexmanagement apis for searching with trex.article

The specific code used is:

/////////////////////////////

.....

SearchQueryListBuilder sqb = new SearchQueryListBuilder();

sqb.setSelectedCustomProps(

"myNamespace:PropX(value=*)"

);

IQueryEntryList qel = sqb.buildSearchQueryList();

.....

/////////////////////////////

Thanks in advance...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi i have a similar scenario

i have to create a web dynpro application that search thru indexes in TREX

what do i do..