GET api/SearchByFacet?searchTerm={searchTerm}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
searchTerm

string

Required

Body Parameters

None.

Response Information

Resource Description

SearchFacetResults
NameDescriptionTypeAdditional information
SearchQuery

string

None.

FacetResults

Collection of FacetResult

None.

Response Formats

application/json, text/json

Sample:
{
  "FacetResults": [
    {
      "FacetName": "sample string 1",
      "TotalHits": 2
    },
    {
      "FacetName": "sample string 1",
      "TotalHits": 2
    }
  ],
  "SearchQuery": "sample string 1"
}

text/html

Sample:
{"FacetResults":[{"FacetName":"sample string 1","TotalHits":2},{"FacetName":"sample string 1","TotalHits":2}],"SearchQuery":"sample string 1"}

application/xml, text/xml

Sample:
<SearchFacetResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Jotunheim.Models.Search">
  <FacetResults>
    <FacetResult>
      <FacetName>sample string 1</FacetName>
      <TotalHits>2</TotalHits>
    </FacetResult>
    <FacetResult>
      <FacetName>sample string 1</FacetName>
      <TotalHits>2</TotalHits>
    </FacetResult>
  </FacetResults>
  <SearchQuery>sample string 1</SearchQuery>
</SearchFacetResults>