POST api/AzureSearch/Suggest

Request Information

URI Parameters

None.

Body Parameters

SearchParams
NameDescriptionTypeAdditional information
Query

string

None.

Culture

string

None.

Facets

Dictionary of string [key] and string [value]

None.

PageNumber

integer

None.

Ids

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "query": "sample string 1",
  "culture": "sample string 2",
  "facets": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "pageNumber": 3,
  "ids": [
    "sample string 1",
    "sample string 2"
  ]
}

text/html

Sample:
{"query":"sample string 1","culture":"sample string 2","facets":{"sample string 1":"sample string 2","sample string 3":"sample string 4"},"pageNumber":3,"ids":["sample string 1","sample string 2"]}

application/xml, text/xml

Sample:
<SearchParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProductivityLibraryApi.Models">
  <Culture>sample string 2</Culture>
  <Facets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Facets>
  <Ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Ids>
  <PageNumber>3</PageNumber>
  <Query>sample string 1</Query>
</SearchParams>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.