[Search][BUG] Wrong dynamic for empty array of string
See original GitHub issueHaving two fields declared as
new Field("tags", DataType.Collection(DataType.String)) {IsRetrievable=true, IsFilterable=true, IsSortable=false, IsFacetable=false, IsSearchable=true, Analyzer= AnalyzerName.EsMicrosoft },
new Field("tagsModelos", DataType.Collection(DataType.String)) {IsRetrievable=true, IsFilterable=true, IsSortable=false, IsFacetable=false, IsSearchable=true, Analyzer= AnalyzerName.EsMicrosoft },
And in Azure correctly created
The search result returs an array of string
when the array has some elements and an empty array of object
when the array is empty.
The bug was found in version 10.1.0 actualizing from 3.x so… I don’t know which is the exact version where the bug was introduced.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Adding elements to an empty array throws errors
Another issue is a type mis-match. You declare an array of String, which would be [String] . However, you are attempting to add...
Read more >How Can I Test a Dynamic Array to See if the Array is Empty?
As we noted, we're going to check the upper bound of the array in question. If the array is empty, the Ubound function...
Read more >How to check for an empty array in Javascript - YouTube
Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap I was checking for empty Arrays wrong... and in this tutorial, ...
Read more >empty - Manual
A variable is considered empty if it does not exist or if its value equals false . empty() does not generate a warning...
Read more >How to populate array elements in string ...
In this case you use an empty array and use the insert(...) perms to add content to the choice element dynamically. Just use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since the
SearchDocument
has methods such asGetBoolean
,GetBooleanCollection
, ad so on I have, at least, a way to ask for correct conversion. You can close the issue.@Mohit-Chakraborty thanks I’ll try it hopefully soon. We are in the process of converting all our prjs from net472+net22+net31 -> NET6 (obviously the problem are public-webs prjs).