0

I have added this EXCLUDE crawl rule so Allitems.aspx is not shown in search results but it should show the items inside library.

http://*/mysite/forms/allitems.aspx

When I test this rule by entering the following URL then it says:

URL

http://myserver/mysite/forms/allitems.aspx

Message

The url will not be crawled because it matches the rule (....my rule here....) marked with a *

Which is fine as this is what I want.

But when I search something then it shows this URL in search results. Why is it ignoring this crawl rule even though when I test it, it says it is fine?

  • Have you done a full crawl? If that is not enough try resetting the index, and again perform a full crawl – Robert Lindgren Dec 15 '13 at 12:49
  • Yes I have done both several times. In fact I have also cleared browser cache and also restarted IIS several times. – Frank Martin Dec 15 '13 at 12:54
0

Try excluding contentclass=STS_List_DocumentLibrary. This should exclude the library but still allow contained documents to come through.

  • You mean I should add this "contentclass=STS_List_DocumentLibrary" as a new crawl rule? – Frank Martin Dec 16 '13 at 6:23
  • From your original post it looks like you are trying to exclude the library but still get the documents in the library. I would usually create a scope with this rule rather than restricting at the crawl itself but either should work. – Dave Paylor Dec 16 '13 at 9:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.