We tested hybrid search on SPO and decided against it.
The test farm where it was set is not active anymore but search is still returning results from it.
How can I set the SPO search to show only results from the SPO tenant?
When I tried "remove search results" it did not find the URL
Thanks
There is a IsExternalContent managed property in the SharePoint, and this property is set to true for all on-premises content. So you can limit search results to show only M365 content with NOT IsExternalContent:true .
Also, you could create a new result souce and change the default query transform to "{?{searchTerms} NOT IsExternalContent:true}". Then use this result for your search
Related
I am working on SharePoint Integration where i am able to success using Microsoft Graph Explorer for a Site search using Drive id.
Here is how i am able search for a Single Site:
https://graph.microsoft.com/v1.0/drives/b!I9A-JY94D0CQp-2TBvsUupBLMUF2SrJHp5VylC7DY8DpCdF-7uQ6NTp6t-MRD8/root/search(q='sharepoint')
With this i am able to get the details of the record 'Sharepoint'.
Now i am trying to search in SitePage where we have Documents added. Can anyone please help me the api to be used in Graph Explorer to get the correct result
I am able to SitePage id using
https://graph.microsoft.com/beta/sites/root/pages?$filter=name eq 'DevHome.aspx'
Your Approach is incorrect.
If you have to search the content of the document library added to a Site page, you need to query the doc library not the Site page.
Using Graph API you will not be able to search the content in the site page.
In our company when I navigate to https://www.bing.com/ I can login with my AAD account and able to perform a search specific to my Company. Meaning, I can filter my search results based on my organization.
I see something like "Show results from XyZ Corporation...."
This makes me think that we have Corporate version of Bing search or I might call it Enterprise Bing and some how its connected to my AAD account so it can fetch corporate search results for me.
However, I am trying to get similar search results by 'Bing Web Search API v7 reference'
I see Web browser search results are different (when I'm logged in )that what I get using REST API.
If I search for 'holidays 2019' on web search I see some results but also see and option to filter them by my company name.
When I do same search using an API
https://api.cognitive.microsoft.com/bing/v7.0/search?q=holidays 2019
I am definitely not sending user context, so I do get search results as if I was not logged in or same results I will get if I was not logged in.
Is there any way to get search results specific to my organization since I can do that on the browser I am trying to do the same programatically.
I think the best solution in your scenario is using Bing Custom Search API as it gives you full control over the search results.
It allows you to specify a URL and whether to include subpages of the URL, add active entries to include results from specific websites or URLs, and much more!
You could also use Microsoft Search in Bing since that customizes results based on your logged in email AD which you mentioned in your question.
I have a PowerApp that is a gallery showing a list from SharePoint and also an input mask for said list in SharePoint. The input part works flawlessly for me and my collegues, but the gallery part which should be showing the data from the SharePoint list is giving me a headache.
I can see the data from the SP list in the App. My colleagues with whom I shared the App only see a blank list.
When they first open the shared app they have to accept a prompt from the SharePoint connector & I have given them all access to the specific SharePoint list. Yet they still don't see anything in the PowerApp gallery that should show the SP data.
I checked the connections in the App setting and the SharePoint connection works. Also I can see the data. Although the connector is showing my personal SharePoint account, but afaik by granting the SharePoint access on the first opening of the App this should take care of that.
TLDR:
PowerApp has a gallery that shows SP data and that works for me but not for the users whom I shared the App with. They only see a blank gallery. How do I fix that?
BR
Thomas
I thankfully found the issue myself after some digging around in the settings. In the Advanced List setting the following option was not set to read all:
Item-level Permissions
Specify which items users can read and edit.
With this option correctly set everyone is now able to see the list items.
Have a great day and I hope this might help someone!
Currently I'm using: /v1.0/sites/{site-id}/drive/root/search(q='{search-text}') but I would like to search across all the sites I have access to.
Is there a Microsoft Graph API which can search a keyword on all sites a user can access in SharePoint without giving site id?
There's no Graph API for a global content search at the moment.
However you can leverage the SharePoint Search API.
We are creating a Sharepoint webpart that enable searching a Sharepoint site contents using Microsoft Graph Api. I am able to get the Lists and subsites
using graph Api, but not sure how to search any content at site level.
Looking for any pointers if this is even achievable.
Below are some of the API calls that work-
https://graph.microsoft.com/v1.0/sites/tenants/lists?select=id,name
https://graph.microsoft.com/v1.0/sites/tenants:/sites/sitename:/sites?search=subsitename
https://graph.microsoft.com/v1.0/sites/tenants:/sites/sitecollection:/lists
here is an example filtering on a list items
https://graph.microsoft.com/v1.0/sites/myThing.sharepoint.com,ffffffff-ffff-ffff-ffff-ffffffffffff,12345678-1234-1234-1234-123456789012/lists/25dd5a71-69a9-44f8-b60f-ed16718eae54/items?expand=fields(select%3DTitle,ID,ContentType,myLookupID)&top=1000&filter=fields/ContentType eq 'My Page'