From a9e8042bbe8cc17600390704f2f2c254a0a0499d Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 31 Mar 2024 12:06:29 +0200 Subject: [PATCH] Update search tutorial --- .../Part1/Beginner-Tutorial-Searching-Things.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.md b/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.md index 14e1ac6db7..8f1a58dfe7 100644 --- a/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.md +++ b/docs/source/Howtos/Beginner-Tutorial/Part1/Beginner-Tutorial-Searching-Things.md @@ -210,6 +210,8 @@ These are the main database entities one can search for: Most of the time you'll likely spend your time searching for Objects and the occasional Accounts. +Most search methods are available directly from `evennia`. But there are also a lot of useful search helpers found via `evennia.search`. + So to find an entity, what can be searched for? ### Search by key @@ -315,7 +317,7 @@ For example, let's say our plants have a 'growth state' that updates as it grows Now we can find the things that have a given growth state: - > py evennia.search_object_attribute("growth_state", "withering") + > py evennia.search_object("withering", attribute_name="growth_state") > Searching by Attribute can be very practical. But if you want to group entities or search very often, using Tags and search by Tags is faster and more resource-efficient.