In my site collection there are two sub sites.
In both sites there is "Pages" library.
In site1, under advanced setting for "Pages" library, include in search option is ON.
In site2, under advanced setting for "Pages" library, include in search option is OFF.
Site1 contain one page with title "My settings and libraries"
Site2 contain one page with title "Other settings"
When I search the word "settings" then it only shows site1 page "My settings and libraries" in search results and not site2 "Other settings".
If I turn on "include in search" option for Pages library in site2 then it appears in search results but then it also shows "AllItems.aspx" page in search results which I don't want. And that page is not appearing for site1.
I want both pages to appear in search results when I search for keyword "settings" but I don't want "Allitems.aspx" to appear in search results.
How to do that?