Add fts offset docs.

The limit can be passed as a string to the query builder to have an offset. I have tested it using the shorthand `limit=f"15, 30"`, the standard syntax should work too.
This commit is contained in:
Ricardo Ander-Egg 2021-01-22 21:50:46 +01:00 committed by GitHub
commit 341f50d2d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1600,8 +1600,8 @@ The ``.search()`` method also accepts the following optional parameters:
``columns`` array of strings
Columns to return. Defaults to all columns.
``limit`` integer
Number of results to return. Defaults to all results.
``limit`` integer or string
Number of results to return. Defaults to all results. You can offset the limit by using a string with the shorthand ``limit=f"15, 30"`` or ``limit="30 OFFSET 15"``. Where 15 is the offset and 30 the limit.
To return just the title and published columns for three matches for ``"dog"`` ordered by ``published`` with the most recent first, use the following: