Forum Discussion
Americo Perez
Apr 22, 2019Iron Contributor
Two question about search in sharepoint online!
Hi,
I have been testing the search in sharepoint online in order to find documents by document id and metadata.
For this test I have two team sites, Finance and Demo. Each team site is using its own document id that has custom characters. For documents in the finance team site the charactes are FINANCE and for Demo documents is DEMO.
In the Sharepoint Settings page I have created a managed property called searchDocId that is mapped to ows__dlc_DocId.
I can see that the libraries are getting the document ids.
Now, when I am in the Finance team site and try to find a document from the DEMO team site using
searchDocId:DEMO I don't find anything until I click on the link "Search all sites instead?" at the bottom of the list result
Is there a way to make the search globally as standard so I don't need to click in the link at the bottom of the list result? (Se the image for reference)
The second question is how can I setup search to search documents by metadata from anywhere in SharePoint? Do I need to create a new result source? If so, how should I create it?
Best regards
Americo
- Jens BalondoBrass Contributor
Do you use a RefinableString for your managed property and add a mapping?
- Americo PerezIron Contributor
- Jens BalondoBrass Contributor
Please search for RefineableString00 (or an other if this Managed Property already in use) and map this with your ows__dlc_DocId Property. Wait 30 Min., add this Property to your Query, re-crawled and re-indexed your List and test again.
Refinable Managed Properties cannot be created in SharePoint Online. Instead use the existing Refinable Managed Properties, e.g. RefinableString00 or RefinableInt00. Searching "Refinable" will show all of the usable Refinable Managed Properties available.
https://docs.microsoft.com/en-us/sharepoint/manage-search-schema
- Jeroen BrandersCopper Contributor
There are a couple of things that could be happening when you work with search.
Frist of all you must wait until 15 minutes to have the value crawled and available in the index.
If you try it again today, is the same result showing as in your screenshot?
If so, can you please use the Search Query Tool and Search for the file and see if the managed metadata is filled in the search result? If the value is empty the value is not correctly indexed.
The second question I came up is of you work with content types or adding columns in the list itself?
- Americo PerezIron Contributor
Thanks,
By using the Highlighted content webpart and filtering the result by Document ID I get the results I am expecting but not when I user the search field just above the quicklaunch. In that case I still getting the same result as in the image in the original post.
I am using content types!
Best regards
Americo