Closed bielu closed 4 months ago
Any reason to not use DateTime instead of long? I'm the meantime I can see if I can replicate.
with lucene indexes it wasnt working fully on datetime and ticsk worked better, now we switch it might be option to try on examinex, when using datetime do i need index my field in any specific format?
I can replicate - the issue is with the field name re-formatting for culture fields. The field formatting: filterId_en-gb
is invalid in Azure Search and if you look at the definition of this field in the Azure Portal it will be: filterId_en_gb
(no hyphen).
If you change your search to use that it should work (have replicated locally). ExamineX should take care of all of this input/output formatting for you, so looks like in this particular case it is being missed. I'll mark this as a bug and get a fix out asap. In the meantime, you can work around this by using the
ExamineX.Shared.IndexNaming.FormatFieldName or ExamineX.Shared.IndexNaming.TryFormatFieldName API to get the correct field name format to use in your RangeQuery field names.
This is fixed in 6.0.1 published today https://github.com/SDKits/ExamineX/releases/tag/6.0.1
@bielu everything working ok with that release?
Hey yes all worked
hi @Shazwazza, This query:
is translated to:
which is incorrect in azure search. Query was build in this way:
where min and max are long values , the same query works on normal examine, when on azure it throws: {"error":{"code":"","message":"Invalid expression: ')' or operator expected at position 232 in '