Search using Graph API not returning expected results.

Anonymous
2024-06-08T08:31:00.9466667+00:00

Hello All,

I have a SharePoint list which I am using to store data which I want to be able to search against from PowerApps. To do this i am using the Graph API

My request body is:

{ "requests": [ { "entityTypes": [ "listItem" ], "query": { "queryString": "Finance path:"https://xxxxxx.sharepoint.com/sites/007/Lists/LegalArchive"" }, "fields": [ "id", "name", "contentclass", "title", "weburl", "BusinessFunction" ] } ] }

I have Indexed column, created managed property, confirmed it is a crawled property but still my query string returns not results related to my query string.

My response is:

                "hits": [
                    {
                        "hitId": "6eeeb62d-bcf3-4b69-aebb-3f66de5b2df5",
                        "rank": 1,
                        "summary": "00000223.TIF 00000223.TIF<ddd/>",
                        "resource": {
                            "@odata.type": "#microsoft.graph.listItem",
                            "id": "6eeeb62d-bcf3-4b69-aebb-3f66de5b2df5",
                            "webUrl": "https://xxxxxx.sharepoint.com/sites/007/Lists/Archive/DispForm.aspx?ID=4734",
                            "fields": {
                                "id": "AAAAADS-jYUvmi5Gj-tMGJm4JTsHAO-q98a9uPVJr2oa5gDqfu4AAAArSIIAAO-q98a9uPVJr2oa5gDqfu4AAxG1XoEAAA2",
                                "contentclass": "STS_ListItem_GenericList",
                                "title": "6042.PDF"
                            }
                        }
                    },

In my return fields I would have expected the Business Function (which in this case is my Search query string.

I have confirmed the Crawled Property exists. I have confirmed the Managed Property exists. I reindexed the list and the site.

Permissions have been granted: Sites.Read.All

What am i doing wrong?

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,446 questions
0 comments No comments
{count} votes