microsoft-search / pnp-modern-search

Home of PnP Modern Search solutions, helping you move from classic to modern SharePoint and beyond
https://microsoft-search.github.io/pnp-modern-search
Other
388 stars 341 forks source link

Results are not getting when searching with multiple words from SharePoint multiline text box #3981

Closed harigoudA closed 2 months ago

harigoudA commented 2 months ago

I am using PNP modern search 4.11.0 version.

When i am searching for multiple words not getting results.

I am having multiline textbox "Objectives" This i made searchable by adding it to managed properties. PNP search is working when i am searching for single word. Please find the below screen shot for the same.

image

But when i search for multiple keywords it is not working. Please find the below screen shot for the same. image

The same when i am searching with search query tool i am getting exact result. image

kasperbolarsen commented 2 months ago

I would suggest looking into the API traffic, as shown here: https://www.youtube.com/watch?v=kPMSiRxK8H8&pp=ygUMbTM2NXRoaW5raW5n

harigoudA commented 2 months ago

Hello @kasperbolarsen Thanks for your reply,

I have followed your instructions but i did not find any thing odd in the API traffic. I can see "Status code: 200 Ok" and in response "Rows": [], Find the below screen shot for payload. image

kasperbolarsen commented 2 months ago

An idea: would it be possible to reduce the query to the very core, like IsDocument:1 KMObjectives:{searchTerms} to ensure that we are not tripped by something else. I have tested a similar scenario in my end, and it works fine.

harigoudA commented 2 months ago

Hello @kasperbolarsen ,

I have reduced the query it is working. I will tune the query as per my requirement. Thank you very much :)

harigoudA commented 2 months ago

We can close this bug.