Azure.Search.Documents vector search successful, but response is null

Rossana Modolin 0 Reputation points
2024-06-07T19:05:07.25+00:00

I am currently performing vector search according to the code guide that can be found here: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/search/Azure.Search.Documents/samples/Sample07_VectorSearch_UsingVectorizedQuery.md#single-vector-search

I created the index, uploaded the documents and was able to perform the search. However, the properties of the search result are always "null", even though the search was successfully performed and the results can be found in Non-public members -> RawResponse -> Content:

2024-06-07 14_20_24-ChatBot (Debugging) - Microsoft Visual Studio

I have the impression the response is not being correctly deserialized, even though the properties of the class I created (AzureSearchDocument) are exactly the same ones in my index:

public class AzureSearchDocument
{    
	public string Id { get; set; }
    public string Title { get; set; }    
	public string Product { get; set; }    
	public ReadOnlyMemory
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,547 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,527 questions
{count} votes