From 303ce6d4d2f816f3f9e4eeb426c1ee3b2db2895c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 1 Dec 2025 15:06:02 +0100 Subject: 📝 update search documentation (#6504) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/widgets/search_input.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/widgets/search_input.html b/ishtar_common/templates/widgets/search_input.html index 14249f4e8..6ae8d5d82 100644 --- a/ishtar_common/templates/widgets/search_input.html +++ b/ishtar_common/templates/widgets/search_input.html @@ -79,7 +79,8 @@

{% trans "Filled/empty" %}

{% blocktrans %}If you want to get items with a specific criteria filled, set the value to "*". Instead if you want to get items with a specific criteria empty, set the value to "*", then prefix the criterion with "-".{% endblocktrans %}

{% blocktrans %}Example: "material='*'" will return only all items with a material set, "-material='*'" return all items with material not set.{% endblocktrans %}

- +

{% blocktrans %}This information applies to text fields. For numeric fields, use the greater than operator (see next section).{% endblocktrans %}

+

{% blocktrans %}Example: searching for "length=>'0'" will return all values greater than or equal to 0, i.e. all completed lengths.{% endblocktrans %}

{% trans "Greater than, lower than, before, after" %}

{% blocktrans %}For searches such as larger, smaller (for numeric fields), before, after (for date fields), add the criterion from the form, then change the "=" sign to "=>" or "=<", depending on the desired result.{% endblocktrans %}

{% blocktrans %}Example: the search "year=>'2019'" will return all items from 2019 and onwards.{% endblocktrans %}

-- cgit v1.2.3