Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PnP Search Filters v4 - 0 Results when filtering on multiple filter fields for external data source results #3934

Open
PinnuDivya opened this issue Aug 23, 2024 · 8 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request Needs: Triage Needs investigation and repro

Comments

@PinnuDivya
Copy link

PinnuDivya commented Aug 23, 2024

Version used
4.12.2.0

Describe the bug
I have created external data source connector to pull data from cosmos DB in M365 search admin center.
I am using microsoft search option as datasource and external Items as entity type.
image

I am able to see the results in results webpart. Please see below for debug code.
image

I have also configured filters having 3 filter types. I have selected OR between the filters.
image.

The issue I am facing is when I select any 1 filter, I am able to see the results. But I see zero results when I select 2 or 3 filters.
Below image refers when one filter is been selected. When this filter is selected, past 24 hours in Modified Date filter is having 16 count.
image

When I select past 24 hours in Modified Date filter, results is showing as 0 instead of 16.
image

And below is the query I am seeing when I have selected 2 filters.
f=[{"filterName":"filetype","values":[{"name":"docx","value":""ǂǂ6543218"","operator":0,"disabled":false}],"operator":"or"},{"filterName":"lastModifiedTime","values":[{"name":"Past 24 hours","value":"2024-08-23T11:50:06.315Z","operator":5},{"name":"Past 24 hours","value":"2024-08-22T11:50:06.315Z","operator":4}],"operator":"or"}]#

To Reproduce
Steps to reproduce:

  1. Create external data source connector in M365 search admin center
  2. Configure PnP search results for external data entity type and configure filters on any sharepoint page.
  3. Select 2 or more filters.

Expected behavior
User should see the results in results webpart.

Desktop (please complete the following information):

  • Browser : Tested in Edge

Additional context
I have implemented same with out PnP and filters worked as expected
image

It would be very helpful if any one could help me here.

@wobba wobba added the Needs: Triage Needs investigation and repro label Aug 23, 2024
@PinnuDivya
Copy link
Author

@wobba We are configuring this pnp search webpart for one of our client and this is very high priority for us. Could you please give confirmation on this ASAP.

@Prash-Ever
Copy link

@wobba We are encountering similar issues with multiple filters malfunctioning when integrating various data sources, such as external (azure SQL or custom m365 connector), drives, list items, messages etc. This is proving to be a blocker, and we are in urgent need of a quick workaround or resolution.

@kasperbolarsen
Copy link
Collaborator

I can confirm that multiple filter values don't work when dealing with External data. @Prash-Ever we welcome a PR from you. Please note that PnP Modern Search is an Open Source project and not associated with MS and our SLA is "when somebody will use their sparetime to improve the project"

image

@kasperbolarsen kasperbolarsen self-assigned this Sep 2, 2024
@wobba wobba added bug Something isn't working enhancement New feature or request labels Sep 8, 2024
@kasperbolarsen
Copy link
Collaborator

as this seems to be an API issue, I have contacted the product team in Microsoft and awaits a response

@wobba
Copy link
Collaborator

wobba commented Sep 23, 2024

Plan is to rewrite how we do Graph queries to make this work.

@tmelnychenko
Copy link

@wobba we had the same issue but with the federated search (default Microsoft connector to Dynamics 365). It would be great if the fix for this issue can be added to the plan 👍

@abates100
Copy link

I can confirm the same occurs in version Version: 4.13.1.0

@kasperbolarsen
Copy link
Collaborator

kasperbolarsen commented Oct 18, 2024

@tmelnychenko

@wobba we had the same issue but with the federated search (default Microsoft connector to Dynamics 365). It would be great if the fix for this issue can be added to the plan 👍

Does this request have anything to do with PnP Modern Search? If we are able, via Graph Connectors, to query data from Dyn365 I would VERY much like to know more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request Needs: Triage Needs investigation and repro
Projects
None yet
Development

No branches or pull requests

6 participants