Skip to content

Workaround for Search Scope Advanced Filter empty search string problem

R2 made a change to search scopes that I wasn’t particularly happy with – in fact as far as I’m concerned they broke search. The Advanced Filter was offered as a way to restore old functionality, however that introduced two new bugs – clicking search with nothing in the search box returned nothing (listed here as a known problem) and  clicking Advanced Search with nothing in the search box gives you a bunch of unusable filters you have to delete.

I’ve been watching out for a fix for these problems and haven’t seen one (except in an early R2 hotfix that got recalled, so doesn’t count). Finally I asked my customer to open a PSS call and we were given a workaround that actually does solve the first problem.

Instead of setting the Advanced Filter like this (as per the documentation):

/ManagementPolicyRule[contains(DisplayName, '%SEARCH_TERM_STRING%')]

you set it like this:

/ManagementPolicyRule[starts-with(DisplayName, '%%SEARCH_TERM_STRING%')]

Note there is a double % there. We are basically using the first % as a wildcard, giving us a “contains” functionality. An empty string is now effectively a wildcard, giving us all objects as we would expect.


Post a Comment

Your email is never published nor shared. Required fields are marked *

Spam comments will be blocked by Akismet


buy revia 50 mg generic atarax online no prescription order tenormin without rx requip express online tenormin rx cheap order requip keflex generic sale requip cheap online canadian pharmacy no prescription keflex buy requip 0.5 mg no prescription where can i buy atarax buy atarax 10mg no prescription buy revia 50mg keflex ordering buy tenormin capsules ordering tenormin online buy atarax online uk tenormin sale no prescription where to buy revia yahoo buy requip online paypal where can i order atarax online buy revia cheap without perscription buy 250mg keflex how to by atarax online no prescription generic tenormin keflex rx cheap revia no script buy tenormin with mastercard requip on line requip purchase without perscripotion buy atarax online uk buy revia online prescription where can i order requip online buy generic requip uk tenormin without rx atarax overnight delivery buy tenormin pills no prescription requip no prescription with mastercard tenormin to buy in canada atarax online uk buy atarax no rx buying revia online buy atarax free shipping atarax without script cheap generic revia no prescription requip online cheap buy revia mastercard no prescription generic keflex buy atarax for women buy generic requip uk best finpecia online pill buy prednisone generic Cytotec purchase overnight delivery where buy Lisinopril purchasing finpecia with overnight delivery Lisinopril overnight cod cheap order rx metformin prednisone 40 mg cheapest place to buy Metformin purchase Metformin online Maxalt no prescription needed 10mg Maxalt 10mg canada where to buy Maxalt uk buy generic Maxalt canada buy metformin cod how to buy Metformin without a prescription Metformin price buy Alli without prescription