Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Documentation Update: Disabling Elasticsearch for an operation #1131

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

Closed
ndy40 wants to merge 2 commits into api-platform:2.5 from ndy40:patch-1
Closed

Documentation Update: Disabling Elasticsearch for an operation #1131

ndy40 wants to merge 2 commits into api-platform:2.5 from ndy40:patch-1

Conversation

@ndy40
Copy link

@ndy40 ndy40 commented Jun 24, 2020

If you have added Elasticsearch to your project and later remove it or prefer to fetch the data from the database rather than from Elasticsearch, you can achieve this by adding the parameter elasticsearch: false to your operation. This forces the api endpoint to query the database instead of Elasticsearch for your data.

Issue isn't visible in the documentation and cost us 2 days of investigating to figure it out.

If you have added elasticsearch to your api-platform and later remove it or prefer to fetch the data from the database rather than Elasticsearch, you can achieve this by adding the parameter `elasticsearch: false` to your operation.
Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
@ndy40 ndy40 requested a review from soyuka June 30, 2020 11:06
Copy link
Author

ndy40 commented Jun 30, 2020

@soyuka thanks for the suggestion. Merged the suggestion.


That's it: your route is gone!

## Disabling ElasticSearch on Operations
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this docs in elasticsearch.md instead please? It will be easier to discover.

Also, can you add a blank line after the title?

ndy40 reacted with thumbs up emoji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dunglas dunglas dunglas requested changes

@soyuka soyuka Awaiting requested review from soyuka

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /