Forum Discussion
HardikAuzmor
Jan 20, 2025Copper Contributor
Microsoft Graph Search API Not Searching Image Titles
Dear,
I am using the Microsoft Graph Search API (https://graph.microsoft.com/beta/search/query) to search files based on their names and content. While the API performs well for most file types, I have noticed that it does not return image files (e.g., PNG, JPG) when the search term matches the title of the image.
Here are the key observations:
- Expected Behavior:
When a search term matches the title of an image file, the image should appear in the search results, just as other file types like documents and spreadsheets do. - Current Behavior:
Image files with titles matching the search term are not being returned in the search results. However, these files are retrievable using their metadata or direct path, suggesting they exist in the index. - Additional Notes:
- Non-image files with matching titles are successfully retrieved.
- This behavior persists even when explicitly specifying the entityTypes as driveItem.
Questions:
- Is there a limitation in the Microsoft Graph Search API that prevents searching for image files based on their titles?
- If this is not a limitation, could you provide guidance on how to structure the query to include image files based on their titles?
- Are there specific configurations or indexing processes required to enable title-based searches for image files?
This functionality is critical for our use case, as we need to perform consistent and comprehensive searches across all file types, including images. Your assistance in resolving this issue or providing clarification would be greatly appreciated.
No RepliesBe the first to reply