Forum Discussion
Modern Pages - Highlighted content not filtering search results for pages in other site collections
Hi Elsa Naumann,
You can select 3 scopes.
* this site
* This site collection
* All sites
This site will indeed only select from the current site
This site collecction picks data from the current site collection
The All sites option however is giving you exactly what you want. Data from all sites
I then set a filter
Now my documents with the word business in the title field are shown.
Can you give some more detail on the kind of filters that you are using?
Hi Pieter Veenstra and thank you for your quick reply.
This approach works really well when the scope is "This site" or rather, the pages are in the same site. But when I do the same as below, with the "All sites" scope (as I know the pages I want to highlight are in a different site collection) the filters don't refine the results as accurately, for example titles not including the defined word are not excluded.
- Jan 03, 2017
Hi Elsa Naumann,
How do you do a not contains? The sdtandard filter options don't have this.
I'm assuming that you are using a Maneged property filter here and then select "Doesn't contain" filter. This would now use the search engines managed properties. Yoju will find the same sisues as with search web parts. The problem might not be the web part.
Could you try on a traditional team site to use a search results web part?
In the past I've seeen issues with title fields.
I would recommend yusing one of the RefinableStringXX properties instead.
- Elsa NaumannJan 03, 2017Brass Contributor
You are absolutely right, there is no not contains, but by defining what the title should contain, the titles that do not contain those words should be automatically excluded by definition :)
The filter I have used is Title includes the words equals <Word>. If the scope is This site the filter works perfectly on the pages (excluding all pages without the word in the filter). My issue is that this filter does not appear to work when the scope is All sites.
PS My bad for using "contains", it's actually "includes" in the standard filter option.
- Jan 03, 2017
Ok, I'm getting a similar behaviour. You should probably try using the RefinableString Managed Properties and see if that works better for you.