Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] SearchOptions.SessionId is not passed to the service #27549

Closed
Mohit-Chakraborty opened this issue Mar 15, 2022 · 1 comment
Closed

[BUG] SearchOptions.SessionId is not passed to the service #27549

Mohit-Chakraborty opened this issue Mar 15, 2022 · 1 comment
Assignees
Labels

Comments

@Mohit-Chakraborty
Copy link
Contributor

Library name and version

Azure.Search.Documents

Describe the bug

When a user sets the SessionId in SearchOptions for a query, the service does not receive the property.

Expected behavior

We expect to see SessionId passed to the service.

Actual behavior

Service-side logs show that SessionId was not passed.

Reproduction Steps

      private static void RunQueries(SearchClient srchclient)
      {
          SearchOptions options;
          SearchResults<Hotel> response;

          Console.WriteLine("Query #1: Search on empty term '*' to return all documents, showing a subset of fields...\n");

          options = new SearchOptions()
          {
              IncludeTotalCount = true,  
              SessionId = "123",
          };

          options.Select.Add("HotelId");
          options.Select.Add("HotelName");
          options.Select.Add("Rating");

          while (true)
          {
              response = srchclient.Search<Hotel>("*", options);
              WriteDocuments(response);
          }
      }

Environment

No response

@Mohit-Chakraborty Mohit-Chakraborty added Search Client This issue points to a problem in the data-plane of the library. labels Mar 15, 2022
@Mohit-Chakraborty Mohit-Chakraborty self-assigned this Mar 15, 2022
@AlexGhiondea AlexGhiondea removed the Client This issue points to a problem in the data-plane of the library. label Apr 19, 2022
@pallavit
Copy link
Contributor

This issue was fixed.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants