younifyd
Menu

Facet a payload key with a given filter

Facet a payload key with a given filter.

POST/collections/{collection_name}/facet

Use it in a workflow

  1. Add a step and choose the Qdrant connector.
  2. Pick the Facet a payload key with a given filter action (under Points).
  3. Fill in the fields below, then reference the result from later steps as {{facetAPayloadKeyWithAGivenFilter.response.data}}.

Request

Path parameters

collection_namestringrequired

Name of the collection to facet in

Query parameters

consistencyoneOf

Define read consistency guarantees for the operation

timeoutinteger

If set, overrides global timeout for this request. Unit is seconds.

Request body

Enter the body as JSON in the step's Body field.

shard_keyoneOf
keystringrequired

Payload key to use for faceting.

limitinteger (uint)

Max number of hits to return. Default is 10.

filteroneOf

Filter conditions - only consider points that satisfy these conditions.

exactboolean

Whether to do a more expensive exact count for each of the values in the facet. Default is false.

json
{
  "key": "string",
  "shard_key": null,
  "limit": 0,
  "filter": null,
  "exact": false
}

Response

Returns 200 with an object. Read it in later steps with {{facetAPayloadKeyWithAGivenFilter.response.data.<field>}}.

usageoneOf

Default null

timenumber (float)

Time spent to process this request

statusstring
resultobject
hitsarray<object>required2 fields
json
{
  "usage": null,
  "time": 0.002,
  "status": "ok",
  "result": {
    "hits": [
      {
        "value": null,
        "count": 0
      }
    ]
  }
}

Need more? See the Qdrant guide for connection setup and behaviour shared by every action.

Was this page helpful?
Facet a payload key with a given filter — Qdrant — Documentation