YannickRe / spfx-msgraph-peoplesearch

Show and search users from your organization with an SPFx web part, through Microsoft Graph.
40 stars 33 forks source link

Search functions #78

Closed Spruit3 closed 8 months ago

Spruit3 commented 1 year ago

Hi,

When you search on a job title with an "&" in it, it doesn't work. Is this possible to make this work? Also the search term has to start with the beginning of the name or whatever you looking for. Is it possible to search on a term that contains the job title? By example, the job title is "Servicedesk Engineer". If you use the search term Engineer, you wouldn't find anything. It would be nice if the people with the job titlte Servicedesk Engineer will appear.

YannickRe commented 1 year ago
  1. Seems to be a bug, it also has been reported in #75 . I will keep this ticket open until I have time to resolve it.
  2. JobTitle is not a proper that supports fulltext search, unfortunately this is a limitation of Microsoft Graph
Spruit3 commented 1 year ago

Thank you for your fast response! I'll wait for your fix.

YannickRe commented 8 months ago

I made a bypass because it's Microsoft Graph that doesn't allow an & in the query, not much I can do about it. I now remove the ampersand from the query so the web part doesn't end in a broken state.