Nested filter query

Hi,

I am looking to apply the below logic as filter and apply into query options to filter the links based on this.

(link displayname &&( appname1||appname2))

Can anyone please help me get the filtering syntax right?

Try (links.displayName == “abc”) && (links.application.name==“app1” || links.application.name==“app2”)

For queryoptions

Filter f1= Filter.or(Filter.eq(“application.name”, appname1),Filter.eq(“application.name”, appname2));
Filter f2=Filter.eq(“nativeIdentity”,linkdispname);
Filter f3= Filter.and(f1,f2);

Then add the filter f3 to your queryoptions object, later use the queryoptions object in context.search ().

Thanks,

Suren