Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep info on phrase/placeholder search in a single place #2650

Merged
merged 2 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion learn/index_settings/synonyms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ To create a mutual association between four words, this is the JSON syntax that

## Multi-word synonyms

Meilisearch treats multi-word synonyms as [phrases](/reference/api/search#phrase-search-2).
Meilisearch treats multi-word synonyms as [phrases](/reference/api/search#phrase-search).

#### Example

Expand Down
18 changes: 0 additions & 18 deletions reference/api/search.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,6 @@ By default, [this endpoint returns a maximum of 1000 results](/learn/advanced/kn

[Learn more about how to use each search parameter](#search-parameters).

#### Placeholder search

Placeholder search is a search with an empty `q` parameter. Since there is no query term, the [built-in ranking rules](/learn/core_concepts/relevancy#ranking-rules) **do not apply.** Only [sort](/learn/core_concepts/relevancy#5-sort) and [custom ranking rules](/learn/core_concepts/relevancy#custom-rules) are taken into account.

If the index has no sort or custom ranking rules, the results are returned in the order of their internal database position.

#### Phrase search

Query terms enclosed in double quotes are treated as [phrase searches](#query-q).

### Response

| Name | Type | Description |
Expand Down Expand Up @@ -175,14 +165,6 @@ By default, [this endpoint returns a maximum of 1000 results](/learn/advanced/kn

[Learn more about how to use each search parameter](#search-parameters).

#### Placeholder search

When no search query is specified, a [placeholder search](#query-q) is run instead.

#### Phrase search

Query terms enclosed in double quotes are treated as [phrase searches](#query-q).

### Response

| Name | Type | Description |
Expand Down