You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: advanced/search.rst
+19-32
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
Advanced Search
2
2
===============
3
3
4
-
With Zammad, you can limit your search to specific Information.
5
-
This allows you to find e.g. Tickets with specific key words and states.
4
+
With Zammad, you can limit your search to specific attributes.
5
+
This allows you to find e.g. tickets with specific key words and states.
6
6
Below information will help you to improve your search results.
7
7
8
-
For instance you can search for a specific customer
8
+
For instance you can search for a specific customer
9
9
by using ``customer.attribute``::
10
10
11
11
customer.firstname: John
@@ -15,29 +15,15 @@ or::
15
15
customer.lastname: Doe
16
16
17
17
18
-
If you want to run a more complex search you can use conditions
18
+
If you want to run a more complex search, you can use conditions
19
19
with ``()`` and ``AND``/``OR`` options::
20
20
21
21
state.name: open AND (article.from:me OR article.from:somebody)
22
22
23
-
.. note:: **🤓 Search phrases changed for Zammad 4.0**
24
-
25
-
With Zammad <=3.6 the following keys contained a string only:
26
-
27
-
* group
28
-
* priority
29
-
* state
30
-
* organization
31
-
32
-
With Zammad >=4.0 these keys contain the whole object. This means you
33
-
now have to add ``.name`` (e. g. ``group.name`` or ``priority.name``)
34
-
to receive the same search results.
35
-
36
-
37
23
Available attributes
38
24
--------------------
39
25
40
-
.. hint::
26
+
.. hint::
41
27
42
28
For a more detailed list of available attributes please take a look into our
43
29
:docs:`Zammad System Documentation </install/elasticsearch/indexed-attributes.html>`.
@@ -57,20 +43,21 @@ Available attributes
57
43
"article_count", "5 |br|\ [5 TO 10] |br|\ [5 TO \*] |br|\ [\* TO 5]", "article_count:5 |br|\ article_count: [5 TO 10] |br|\ article_count:[5 TO \*] |br|\ article_count:[\* TO 5]", "You can search for Tickets with a specific number of articles (you can even search for everything with 5 or more articles or even up to 5 articles, if needed)."
58
44
"article.from", "\*bob\*", "article.from:\*bob\*", "Show all tickets that contain articles from ""Bob"""
59
45
"article.body", "heat |br|\ heat~ |br|\ /joh?n(ath[oa]n)/", "article.body:heat |br|\ article.body:heat~ |br|\ articlebody:/joh?n(ath[oa]n)/", "First example shows every ticket containing the word ""heat"" - you can also use the fuzzy operator ""~"" to search for similar words like e.g. like ""head"". Zammad will also allow you to use regular expressions, where ever the attributes allows it."
60
-
61
-
.. hint:: **Combining search phrases**
62
-
63
-
You can combine search phrases by using ``AND``, ``OR`` and ``TO``,
64
-
depending on the situation and phrases you use. If needed, you can parts of
65
-
your search phrase for complex searches with ``()``. This allows you to
66
-
combine several phrases with different dependencies (AND/OR). In case you
67
-
receive search results that you want to exclude, you can use negation ``!``.
68
-
Below are some examples that you could use with this:
69
-
70
-
.. csv-table:: Examples for search phrase combinations
46
+
47
+
Combining search phrases
48
+
------------------------
49
+
50
+
You can combine search phrases by using ``AND``, ``OR`` and ``TO``,
51
+
depending on the situation and phrases you use. If needed, you can parts of
52
+
your search phrase for complex searches with ``()``. This allows you to
53
+
combine several phrases with different dependencies (AND/OR). In case you
54
+
receive search results that you want to exclude, you can use negation ``!``.
55
+
Below are some examples that you could use with this:
56
+
57
+
.. csv-table:: Examples for search phrase combinations
71
58
:header: "Search phrase", "Description"
72
59
:widths: 10, 20
73
-
60
+
74
61
"state.name:(closed OR open) AND (priority.name:""2 normal"" OR tags:feedback)", "Show every ticket that state is either closed or open and has priority normal or the tag feedback."
75
62
"state.name:(closed OR open) AND (priority.name:""2 normal"" OR tags:feedback) AND !(*Zammad*)", "This gets the same result as above, expect that we don't want the ticket to contain anything matching to ""Zammad"""
76
63
"owner.email:bob@example.net AND state.name:(open OR new)", "Show Tickets from bob@example.net that are either open or new"
0 commit comments