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

Filtering on Edm.DateTimeOffset field not working in .NET SDK #77

Open
Hari-c4 opened this issue Jan 26, 2021 · 2 comments
Open

Filtering on Edm.DateTimeOffset field not working in .NET SDK #77

Hari-c4 opened this issue Jan 26, 2021 · 2 comments
Assignees

Comments

@Hari-c4
Copy link

Hari-c4 commented Jan 26, 2021

This is an issue I found in Web UI Template. I have a search index with Collection(Ed.String) (field name : organizations) and Edm.DateTimeOffset (field name : Date) fields. I'm trying to filter based on my Date field, please find the screenshot below which has the search query

Filter_Value

This query returns some documents when I tried it in the search explorer in Azure portal, but here when I call it in the SDK I'm getting result as null. I tried this with 'organizations' field, that one is working as expected in SDK also. This issue seems to be only for Edm.DateTimeOffset.

API Version : 2020-06-30

Steps to reproduce :

  1. Create a search index with Edm.DateTimeOffset field and make it filterable
  2. Try to filter documents based Edm.DateTimeOffset field using Azure Search SDK for .NET
@dereklegenzoff
Copy link
Contributor

dereklegenzoff commented Jan 29, 2021

The UI itself doesn't currently have support for Edm.DateTimeOffset filters. (See line 163 in this file; facets.js would also need to be updated).

However, it looks like you might be setting the filter another way--is that correct? I would expect the filter syntax above would work. Is the query itself throwing an error? Is the UI throwing an error? Any error messages you can provide would be helpful.

@Ritaprajapati
Copy link

Is this issue fixed, I am having the same problem. Have Edm.DateTimeOffset (field name : Date) fields , the blob has dates in different format. But the return data is 0.

@gmndrg gmndrg self-assigned this Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants