In SharePoint 2013 the inline/insitu list search doesn't search by List Item ID - is there a way to fix this?
3 Answers
Based on some quick testing on both a SharePoint 2013 on-premises farm and SharePoint Online, it should work if you use the correct Keyword Query Language (KQL) property restriction syntax and the search schema configuration hasn't been modified from the default.
The search configuration point that is critical here is the Managed Property called "ListItemId". This maps to a Crawled Property called "ows_ListItemId". Thus, your query should be:
ListItemId:X
where X is the Id you are looking for.
For example, the screenshot below is an on-premises document library where I'm looking for an Id of 6.
And this screenshot is of an asset library in SharePoint Online where I'm looking for an Id of 4.
Lastly, you should note that the "ListItemId" Managed Property is of the type Text so it will only support Text KQL operators. Here's a link to more KQL details:
Please note that everything that you see on screen is not searchable. The search that you are performing is using SharePoint search engine behind the scene.
SharePoint crawls the fields that are meant to be searchable and those that are marked as "Indexed = true". ID field is not indexed so you cannot perform ID based search.
UPDATE: If your library is more than 5000 items, you might as well be victim of stupid in-place search. Check my blog for interesting findings: http://the-sharepoint.blogspot.com/2015/12/strangeunexpectedfrustrating-in-place.html
was looking for an answer and found a Microsoft answer and i wanted to share.
-
Hello Ivan, welcome to the community and thanks for sharing the information. But please include the necessary portion of the information in your answer because link-only answer will not help anyone if the link gets broken in future. Commented Mar 8, 2018 at 12:19