Skip to content

map extensions section of api response to search response #4315

@Kalmar99

Description

@Kalmar99

Describe the problem

When inspecting the json response from the api through the algolia dashboard i can see that there is a section in the response named: extensions, it contains some useful information such as what categories are used by query categorization. However currently its not mapped to the search response object returned from the algolia csharp client. Example:

  "extensions": {
    "queryCategorization": {
      "autofiltering": {
        "enabled": true,
        "maxDepth": 5,
        "facetFilters": [],
        "optionalFilters": [
          "categories.lvl0:Mobiler & klokker",
          "categories.lvl1:Mobiler & klokker > Mobiltelefoner"
        ]
      },
      "count": 2202,
      "normalizedQuery": "iphone 16"
    }
  },

Describe the solution

Map the extensions section to the search response object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions