Answered by:
Exclude "AllItems.aspx" from sharepoint Search Result

Question
-
Hi all,
I have a issue with sharepoint seach in office 365 public facing site. For searching purpose, I have created various scopes on the document library. So by searching that document library , I want to restrict url which contains forms/allitems.aspx.
I tried it with exclude functionality in the scope but It didn't work for me. Anybody there, who has faced such issue on sandbox solution.
Tuesday, July 9, 2013 1:01 PM
Answers
-
I tried this but didn't work. I restarted IIS many times as well as did index rest but still allitems.aspx appears in search results.
I did this for not only subsite but also parent site but same issue.
- Marked as answer by Suhil Jisaheb Thursday, December 26, 2013 6:16 AM
Sunday, December 15, 2013 10:55 AM
All replies
-
Hi Suhil,
Go to search service application, crawling section, click crawl rules to create a crawl rule to exclude http://*allitems.aspx page.
For more information, please refer to
http://technet.microsoft.com/en-us/library/jj219686.aspx
Best Regards.
Kelly Chen
TechNet Community SupportWednesday, July 10, 2013 2:35 AM -
Hi Kelly,
Thanks for the reply. How it can be possible with office 365.
Wednesday, July 10, 2013 5:25 AM -
Hi,
You cannot do this in Office365. You can however create a query rule or result source which modifies the query to exclude allitems.aspx results.
-filename:allitems.aspx
Thanks,
Mikael SvensonSearch Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
http://techmikael.blogspot.com/
Author of Working with FAST Search Server 2010 for SharePoint- Proposed as answer by sadomovalexMVP Thursday, August 15, 2013 1:28 PM
Thursday, July 11, 2013 8:03 PM -
Hi, Mikael,
Please let me know, from where can I make query rule in office 365. I am working on office 365 public site. In Search scope, I am not able to figure out anything about create query rule. Is it possible in public site (Anonymous site )?
- Edited by Suhil Jisaheb Monday, July 15, 2013 7:15 AM Spelling mistake.
Friday, July 12, 2013 5:58 AM -
I tried this but didn't work. I restarted IIS many times as well as did index rest but still allitems.aspx appears in search results.
I did this for not only subsite but also parent site but same issue.
- Marked as answer by Suhil Jisaheb Thursday, December 26, 2013 6:16 AM
Sunday, December 15, 2013 10:55 AM -
With the query rules I got it. With query rules we can set which result should be apprear & which result should nt be.Thursday, December 26, 2013 6:15 AM
-
{?{searchTerms} -Filename:https://abc/sites/xxx/yyy/Pages/Forms/AllItems.aspx}
Above will help to remove the allitems.aspx
Thursday, January 28, 2016 7:45 AM -
I did an update on this at http://www.techmikael.com/2014/11/tired-of-getting-allitemsaspx-hits-in.html where you can exclude by contentclass and wildcards.
Thanks,
Mikael Svenson - Search Enthusiast
SharePoint MVP/MCPD/P-TSP - If you find an answer useful, please up-vote it. http://techmikael.blogspot.com/
Author of SharePoint Search Queries Explained and Working with FAST Search Server 2010 for SharePointThursday, January 28, 2016 8:18 AM