Those 73k without
# community-help
r
Those 73k without
k
There could be perhaps strings with special characters which become empty on indexing because special chars are dropped.
r
That is not the case, the way I have it set up is that it intentionally creates an emptry array that doesnt show up in the filter
was something changed since it used to work
k
What version are you using now and what was the earlier version?
r
how do i check version?
k
You can check /debug endpoint
r
What I really want to know is how to make filter avoid empty arrays
I can share my schema
'name': 'companyDB', 'fields': [ {'name': 'id', 'type': 'string','facet':false }, {'name': 'company_name', 'type': 'string',"optional": true,'facet':false }, {'name': 'url_slug', 'type': 'string',"optional": true,'facet':false }, {'name': 'number_of_investments', 'type': 'string',"optional": true,'facet':false }, {'name': 'number_of_exits', 'type': 'string',"optional": true,'facet':false }, {'name': 'location', 'type': 'string',"optional": true,'facet':false }, {'name': 'investor_type', 'type': 'string[]',"optional": true,'facet':true }, {'name': 'description', 'type': 'string',"optional": true,'facet':false }, {'name': 'company_url', 'type': 'string',"optional": true,'facet':false }, {'name': 'domain', 'type': 'string',"optional": true,'facet':false }, {'name': 'facebook', 'type': 'string',"optional": true,'facet':false }, {'name': 'instagram', 'type': 'string',"optional": true,'facet':false }, {'name': 'linkedin', 'type': 'string',"optional": true,'facet':false }, {'name': 'twitter', 'type': 'string',"optional": true,'facet':false }, {'name': 'contact_email', 'type': 'string',"optional": true,'facet':false }, {'name': 'contact_email_verified?', 'type': 'string',"optional": true,'facet':false }, {'name': 'phone_number', 'type': 'string',"optional": true,'facet':false }, {'name': 'industries', 'type': 'string[]',"optional": true ,'facet':true }, {'name': 'country', 'type': 'string',"optional": true,'facet':true }, {'name': 'has_email', 'type': 'bool',"optional": true,'facet':true }, {'name': 'has_social', 'type': 'bool',"optional": true,'facet':true }, {'name': 'has_phone', 'type': 'bool',"optional": true,'facet':true }, {'name': 'ranking', 'type': 'int32',"optional": false,'facet':true, "sort":true }, {'name': 'city', 'type': 'string',"optional": true,'facet':true }, {'name': 'stage', 'type': 'string[]',"optional": true ,'facet':true }, ], 'default_sorting_field': ''
k
Can you please share a small reproducible example with maybe one or two fields?
r
{"id":"COMP047401","company_name":"Aranit Cenalla","url_slug":"aranit-cenalla","number_of_investments":"10","number_of_exits":"2","location":"Tirana, Tirane, Albania","investor_type":["Individual/Angel"],"description":"Aranit is a venture capitalist, a tech lover and businessman who is focused on investing on startup companies and well positioned businesses...","company_url":"http://www.bros.capital/","domain":"bros.capital","facebook":"","instagram":"","linkedin":"https://www.linkedin.com/in/araniti/","twitter":"","contact_email":"info@bros.capital","contact_email_verified?":"yes","phone_number":"","industries":[""],"country":"Albania","stage":[],"city":"Tirana","has_email":true,"has_phone":false,"has_social":true,"ranking":19}
as you can see the industries array is empty
k
I need a small example that I can run locally to reproduce the bug. Please share an end to end example where you create a sample collection, index a sample document and query it that shows the bug in action. This will help us identify the issue and fix it. Thanks.
r
hmm wait I may have found it
when i just submit an empty []
with no quotes it seems to ignore
k
Empty array needs to be just [ ]
r
Thank you for the assistance,
Seems something changed
I resolved
to note you have to put [] instead of [""]