Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Search API - Page Selection Component #196

Merged
merged 32 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
96dccd7
Search API - numbered pagination
bidoubiwa Oct 25, 2022
7e4c4b8
Improve numbered pagination explaination
bidoubiwa Oct 26, 2022
38507fa
Update text/0118-search-api.md
bidoubiwa Oct 26, 2022
b45dbd7
Update text/0118-search-api.md
bidoubiwa Oct 26, 2022
5de0934
Apply suggestions from code review
bidoubiwa Oct 26, 2022
910beed
Add links
bidoubiwa Oct 26, 2022
bebc647
Update open api
bidoubiwa Oct 26, 2022
cccbb88
Add a dot at the end of the title
bidoubiwa Oct 26, 2022
42160db
Fix links
bidoubiwa Oct 27, 2022
1ba582a
Improve page and hitsperpage query params
bidoubiwa Oct 27, 2022
31c16bc
Refactor pagination guide
bidoubiwa Oct 27, 2022
ff2ab99
Fix wording
bidoubiwa Oct 27, 2022
d3d1a89
Add corner case
bidoubiwa Oct 27, 2022
26598cc
Update open-api.yaml
bidoubiwa Oct 31, 2022
b68ce00
Update open-api.yaml
bidoubiwa Oct 31, 2022
f74bad2
Update open-api.yaml
bidoubiwa Oct 31, 2022
2f1819a
Apply wording changes from code review
bidoubiwa Oct 31, 2022
2d6a311
Apply suggestions from code review
bidoubiwa Oct 31, 2022
cc1c809
Fix example
bidoubiwa Oct 31, 2022
9db7a16
Apply suggestions from code review
bidoubiwa Oct 31, 2022
74264e1
Update open-api.yaml
bidoubiwa Nov 2, 2022
91fd26a
Update text/0118-search-api.md
bidoubiwa Nov 2, 2022
46ff7a4
Update links
bidoubiwa Nov 2, 2022
ba63d05
Add link to maxtotalhits
bidoubiwa Nov 2, 2022
0e66c81
Update text/0118-search-api.md
bidoubiwa Nov 2, 2022
1a994b0
Improve message in page reference
bidoubiwa Nov 2, 2022
c11fbca
Merge branch 'pagination-search-parameters' of github.com:meilisearch…
bidoubiwa Nov 2, 2022
b810088
Update text/0118-search-api.md
bidoubiwa Nov 2, 2022
416429c
Add telemetry to know the most used search results navigation methods…
gmourier Nov 2, 2022
b2a85d1
Update text/0118-search-api.md
bidoubiwa Nov 4, 2022
65c5f8a
Update text/0118-search-api.md
bidoubiwa Nov 4, 2022
e2f5292
Merge branch 'release-v0.30.0' into pagination-search-parameters
gmourier Nov 29, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 52 additions & 3 deletions open-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,22 @@ components:
type: integer
description: Offset given for the query. If offset is not provided as a query parameter, this parameter displays the default offset value.
example: 0
page:
type: integer
description: Sets the specific results page. If page is not provided as a query parameter, this parameter is ignored.
bidoubiwa marked this conversation as resolved.
Show resolved Hide resolved
example: 1
hitsPerPage:
type: integer
description: Sets the number of results returned for a query. If hitsPerPage is not provided as a query parameter, this parameter is ignored.
bidoubiwa marked this conversation as resolved.
Show resolved Hide resolved
example: 20
totalHits:
type: integer
description: Returns the total number of search results. Computed if either `page` or `hitsPerPage` is provided as a query parameter.
bidoubiwa marked this conversation as resolved.
Show resolved Hide resolved
example: 20
totalPages:
type: integer
description: Returns the total number of results pages. Computed if either `page` or `hitsPerPage` is provided as a query parameter.
bidoubiwa marked this conversation as resolved.
Show resolved Hide resolved
example: 20
total:
type: integer
description: Total number of browsable results using offset/limit parameters for the given resource.
Expand Down Expand Up @@ -234,6 +250,18 @@ components:
estimatedTotalHits:
type: integer
description: Estimated number of candidates for the search query.
page:
type: integer
description: Specific results page.
bidoubiwa marked this conversation as resolved.
Show resolved Hide resolved
hitsPerPage:
type: integer
description: Number of results returned for a query.
bidoubiwa marked this conversation as resolved.
Show resolved Hide resolved
totalHits:
type: integer
description: Total number of search results.
bidoubiwa marked this conversation as resolved.
Show resolved Hide resolved
totalPages:
type: integer
description: Total number of results pages.
bidoubiwa marked this conversation as resolved.
Show resolved Hide resolved
facetDistribution:
type: object
additionalProperties:
Expand All @@ -260,9 +288,6 @@ components:
example: ninja
required:
- hits
- offset
- limit
- estimatedTotalHits
- processingTimeMs
- query
task:
Expand Down Expand Up @@ -756,6 +781,20 @@ components:
schema:
type: number
default: 0
page:
name: page
in: query
description: Sets the specific results page.
schema:
type: number
default: 1
hitsPerPage:
name: hitsPerPage
in: query
description: Sets the number of results returned for a query. If hitsPerPage is not provided as a query parameter, this parameter is ignored.
schema:
type: number
default: 20
from:
name: from
in: query
Expand Down Expand Up @@ -1630,6 +1669,8 @@ paths:
- $ref: '#/components/parameters/offset'
- $ref: '#/components/parameters/sort'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/hitsPerPage'
- $ref: '#/components/parameters/showMatchesPosition'
- $ref: '#/components/parameters/matchingStrategy'
responses:
Expand Down Expand Up @@ -1757,6 +1798,14 @@ paths:
type: number
description: Maximum number of documents returned.
default: 20
page:
type: number
description: Specific results page.
bidoubiwa marked this conversation as resolved.
Show resolved Hide resolved
example: 1
hitsPerPage:
type: number
description: Number of results returned for a query.
bidoubiwa marked this conversation as resolved.
Show resolved Hide resolved
example: 20
sort:
$ref: '#/components/schemas/sort'
examples:
Expand Down
Loading