diff --git a/learn/security/generate_tenant_token_scratch.mdx b/learn/security/generate_tenant_token_scratch.mdx index 50678da16..a7f8e0c1c 100644 --- a/learn/security/generate_tenant_token_scratch.mdx +++ b/learn/security/generate_tenant_token_scratch.mdx @@ -64,7 +64,7 @@ Consult the [token payload reference](/learn/security/tenant_token_reference) fo ## Encode header and payload -You must then encode both the header and the payload into `base64`, concatenate them, and generate the token by signing it using your chosen encryption algorithm. +You must then encode both the header and the payload into `base64`, concatenate them, and generate the token by signing it using your chosen encryption algorithm. For more details [click here](https://jwt.io/). ## Make a search request using a tenant token diff --git a/reference/api/search.mdx b/reference/api/search.mdx index 9c2de1614..3fc03deac 100644 --- a/reference/api/search.mdx +++ b/reference/api/search.mdx @@ -383,6 +383,9 @@ A search query cannot return more results than configured in [`maxTotalHits`](/r #### Example If you want your query to return only **two** documents, set `limit` to `2`: +
+Also,
+If you want your query to return only **zero** documents, set `limit` to 0: (Maybe useful for anykind of restricted search)