Skip to content

Commit 4baca0f

Browse files
authored
docs(elasticsearch): document the elasticsearch property (#1648)
Add documentation to the elasticsearch property to reflect behavior added in api-platform/core#5177
1 parent 26cbb7f commit 4baca0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/elasticsearch.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ Keep in mind that it is your responsibility to populate your Elasticsearch index
199199
a custom [state processors](state-processors.md#creating-a-custom-state-processor) or any other mechanism that suits your
200200
project (such as an [ETL](https://en.wikipedia.org/wiki/Extract,_transform,_load)).
201201

202+
To disable elasticsearch index discovery for non-elasticsearch entities you can set `elasticsearch: false` in the `#[ApiResource]` attribute. If this property is absent, all entities will perform an index check during cache warmup to determine if they are on elasticsearch or not.
203+
202204
You're done! The API is now ready to use.
203205

204206
### Creating custom mapping

0 commit comments

Comments
 (0)