Azure / Azure/azure-search-vector-samples
Type Error bug in azure-sdk-for-python
- Dominant language
- Jupyter Notebook
- Stars
- 910
- Forks
- 377
- PR merge metrics
- No merged PRs in 30d
Description
There seems to be an issue creating a field of type Collection(EdmSingle) in azure-search-documents==1.15.1 This could be a bug in azure-sdk-for-python
SearchFieldDataType.Collection(SearchFieldDataType.Single) -> Edm.String
(python program)
fields = [
SearchableField(name="titleVector", type=SearchFieldDataType.Collection(SearchFieldDataType.Single), searchable=True, vector_search_dimensions=3072, vector_search_profile_name="myHnswProfile"),
]
↓
(JSON)
{
"name": "titleVector",
"type": "Edm.String",
:
}
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Python program shown in the issue and inspect how SearchFieldDataType.Collection(SearchFieldDataType.Single) is serialized in azure-search-documents==1.15.1. Compare the generated JSON with the expected EdmSingle collection type. Done means the field no longer serializes as Edm.String, with the behavior verified against the reported example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- backend-api-design, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100