Thursday, April 21, 2011

Why SharePoint 2010 search does not show some results?

SharePoint 2010 search is better than ever before. Enterprise search for SharePoint 2010 contains all the features and functionality of MOSS 2007 Search, like people search, but goes further with richer navigation, refinement and related search capabilities. After Microsoft acquired FAST 2 years ago and applied this to SharePoint, it now offers as a separate add-on to SharePoint for those willing to invest in high end enterprise search.

Since search is very comportment in SharePoint adoption, there are many cases users reported they could not find the expected items in the search result. I would like to share the tips we found since August 2010 so you could explain and resolve those "issues" quickly.

Before we dig into some specific search "issues", first you should take a look of the different SharePoint Versions Search Comparison before implement it in your company. Searches like People Search, Social, Taxonomy integration not included in Search Server 2010 Express. Second, verify search services have been setup and associated with webapp and crawling process has been completed without errors. Incremental  crawling process has also been scheduled. You could verify from central admin and refer some instructions. Now let's dig into some specific search "issues" users reported frequently.

1. Why documents or items did not displayed in my search result while is for some other people? This is very common questions people complain and most of the cases, it's the permission issue. Specific users may not have permission to read those documents and as a result, it will not be displayed in the search result.

2. Why documents on one site do not show in the search result but others shown?
Besides the permission checking, this is typical site search disabled setting issue. Go to "Site Actions"->"Site Settings"->Site Administration"->"Search and offline availability" to verify "Allow this site to appear in search results" is set to yes as shown in the screen shot. This is site setting and site owners could hide the items on the site intentionally not to display in the search result.


3. Why search not showing any results for anonymous users?
This is similar site search disabled setting issue described above and you could change site setting and set "Always index all Web Parts on this site" to true.

4. Why some of my documents did not show in the search result?
Yes, this happens to several users and this may be related to Draft documents that are in document library that requires approval. You could check whether your document library enabled the approval process by going to "Document Library Settings"->"Version Settings" and whether "Require content approval for submitted items?" is set to yes as in the screen shots.




There is another interesting setting on the Document Library setting "Draft Item Security" that will impacting your search result.

Here is the case if you have file 1 has version 1.0 that is in published status and version 1.1 checked-in but not approved.

If  "Draft Item Security"is set to "Only users who can edit items", file 1 will NOT in any search result as designed since the crawling process will only index the latest version. In this case, the latest version has not been published and as a result, this file will not be indexed and will not in search result.

However, people reported if "Draft Item Security" is set to "Any user who can read items", file 1 with version 1.0 is still in the index and will be displayed in the search result. However, my testing does NOT display this file in the search result that is consistent with the golden rule - only latest published version will be indexed and if latest version is in draft version, none of the versions will be indexed as designed.

4. Why PDF files not show in the search result?
This is easy answer. You need to install PDF iFilter to index PDF files. You could follow Microsoft instruction to install it.

5.  Why social tagging and discussion not show in the result?
You may check whether jobs to index the social tagging are running correctly. The job for this is scheduled hourly and you could change it from central admin as administrator. The job is named as "User Profile Service - Social Data Maintenance Job" that is to Aggregates social tags and ratings and cleans the social data change log.

6. Why people search not show any result?
Besides you need to have check whether you are NOT running Search Server 2010 Express, this may be the mysite search index issue. You should included the MySite in the index content as in the screen shot. You may refer the instruction listed in some bog and verify it.


7. Why no result show in the default simple search but show in advanced search?
If you can see your items in advanced search but not in default simple search, this might be the webapp zone setting bug described in MSDN discussion board we identified during testing. If you have multiple zones setup for the same webapp. Please mask sure the default zone is Intranet NOT other settings. This seems to be a bug you could not get search result if the default zone is NOT Intranet. We may need to submit this bug to Microsoft.

8. Why my external line of business data not show in the result even we have BCS setup already?
If you have setup BCS to bring external data to SharePoint through external content type and did not find those in search result, this might be the search setting issue. You could configure this in SharePoint Central Administration as described in previous blog.

9. Why documents or items did not displayed in my search result even I have the permission through SharePoint?
If you have implemeted some security policy like NextLabs and enabled Search Result Trimming, it will allows SharePoint to limit the display of search results to only those web parts or documents (i.e., list items) which the search user is authorized to view based on NextLabs entitlement policy. On the worlds, even users have been granted permission through SharePoint to have access those contents, they will not be able to see in search result if thay are restricted from NextLabs policy entitlement. This is one of the requirement from our security team to block groups to access the sesitive content. See my new blog for details.


There are some other search issues we may share later.

8 comments:

  1. Hi Harry,

    These are really useful tips for troubleshooting frequent search issues. I myself faced many of these at some time in past. One more issue I am facing in my recently implementation is unavailability of older versions of document in search result. My client have requirement that each document having matching text should appear in search result no matter it is latest approved version or old version. There point is valid one as they are in business where it is critical for them to refer all available content in repository no matter it is historic or latest. Do you have any suggestion which we can use to meet there requirement. Although after my research I have identified a product which offers version search for SharePoint 2010 and FAST.Their demo at site http://stoictech.sharepoint.com/Pages/VersionSearch.aspx is promising. But if there is any other better solution available than I would like to know about it.

    ReplyDelete
  2. Hi Harry,

    These are very useful tips for Search troubleshooting. I myself faced number of these issues in past. One more search issue I would like to highlight here is related to search on older version of documents. SharePoint search return only last published document in search result and historic versions does not appear in result. One of my client have requirement that each piece of matching content should appear in search result no matter it is latest or historic.
    From there business need there point is very reasonable. I explored possibility of custom solution to implement this but not found any help available. Although I have found a product which enables version search in SharePoint 2010 and FAST. Demo at their site http://stoictech.sharepoint.com/Pages/VersionSearch.aspx looks promising. Do you know about any other better solution or product which can enable version search.
    Thanks for your help.
    Vikas

    ReplyDelete
  3. How do you get the actual name of a document set to show up in FAST Search results in SharePoint 2010? Right now when we search on metadata of the doc set and it is included in the search results, it is just listed as "Document Set" instead of the title of the set with is "RFP for Paving Contract."
    Thanks

    ReplyDelete
  4. Thanks for sharing these invaluable tips. Our production site is still on SharePoint 2007...

    One question that doesn't seem to have been covered above:

    Assuming that all users have full read (at least) access to a specific item, will the item show in search results when searching for a term that is in a previous version (major versions only, and published, of course)?

    For example, let's say I have a list of contacts, with versioning enabled. One of the fields is "skills" and in a previous version of the contact, a skill included was "Workflow". In the current version, that skill is not in the field.

    Will the contact still show up in search results for a query of "Workflow"?

    IMHO and some informal tests, it should.

    Thoughts anyone?

    ReplyDelete
  5. I have a situation where I have only pdf documents in the same doclib and some are found by search while others are not. I have ensured 1) a full crawl has run and has no errors 2) use the OOTB search from the doclib where all I specify is: isDocument:1 3) checked permissions and all documents inherit from the doclib and still some docs are not returned. Any ideas??

    ReplyDelete
  6. Hai i am trying to search local system file in Fileshares Content Sources it's displays results Perfectly in Enterprise Search Center and Basic Search Center but it doesn't displays results in Normal Site or Home.aspx page.

    Could you please share any other way to display results in Home.aspx

    Thanks,
    Kamesh

    ReplyDelete
  7. Hi,
    I am unable to get the Rss Feeds in Search results in SharePoint 2010.Please provide any information to get the rss feeds in search results.

    Thanks,
    Kamesh

    ReplyDelete
  8. Hi Guys while searching through a keyword its showing me some documents which have no keyword matching to metadata nor content then why it is showing Please help me out

    ReplyDelete