Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = 搜索 = | ||
2 | |||
3 | |||
4 | ➡️ 介绍了对象的搜索操作。 | ||
5 | |||
6 | |||
7 | 在iTop中,大多数对象的详细信息中都可以看到搜索图标 ([[[[image:https://www.itophub.io/wiki/media?media=3_0_0:user:search-icon.png||alt="Search icon"]]>>url:https://www.itophub.io/wiki/media-detail?id=3_0_0:user:search&media=3_0_0:user:search-icon.png]]) ,单击此图标会切换到多条件搜索表单。 搜索表单中的所有条件都会使用**AND 操作符**进行组合。这意味着在搜索工单时,如果指定**Claude Monet**为发起人以及一组状态,搜索结果将列出所有符合这些条件的工单。 | ||
8 | |||
9 | |||
10 | [[[[image:https://www.itophub.io/wiki/media?w=800&tok=3f37c9&media=3_0_0:user:search-demo-high.png||alt="A search result"]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:search-demo-high.png]] | ||
11 | |||
12 | |||
13 | 你可能**找不到**想要找的对象,原因可能有很多 | ||
14 | |||
15 | * 由于您的用户权限,您不允许查看它, | ||
16 | * 在左上角的下拉列表中选择了一个组织,该对象不属于该组织。 | ||
17 | * 对象是废弃的,首选项中没有选择显示废弃的数据 | ||
18 | |||
19 | == == | ||
20 | |||
21 | == 场景 == | ||
22 | |||
23 | |||
24 | === 添加条件 === | ||
25 | |||
26 | |||
27 | 大多数搜索都有预定义的搜索条件,但你可能想要更改它们或添加新的搜索条件 | ||
28 | |||
29 | [[[[image:https://www.itophub.io/wiki/media?w=400&tok=9bee39&media=3_0_0:user:search-add-criteria.png]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:search-add-criteria.png]] | ||
30 | |||
31 | 1. 打开添加条件框 | ||
32 | 1. 可以通过输入属性的开头内容来过滤列表 | ||
33 | 1. 可以点击一个属性名,会将其添加为过滤条件并关闭该框 | ||
34 | 1. 或者,可以点击复选框,它将选中该属性但保持弹出框打开以选择更多条件,在这种情况下,下一步点击名称就能够选中。 | ||
35 | |||
36 | === === | ||
37 | |||
38 | === 设定标准 === | ||
39 | |||
40 | |||
41 | 1. 打开一个条件框。建议选项将取决于属性的类型。 | ||
42 | |||
43 | [[[[image:https://www.itophub.io/wiki/media?w=160&tok=052204&media=3_0_0:user:search-set-criteria.png]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:search-set-criteria.png]] | ||
44 | |||
45 | 1. ((( | ||
46 | 选择一个选项: | ||
47 | |||
48 | * 在文本框中输入数据, | ||
49 | * 选择单选按钮 | ||
50 | * 检查一个或多个选项 | ||
51 | ))) | ||
52 | 1. 如果你想要更多的选项,点击“更多” | ||
53 | 1. ((( | ||
54 | 一旦你设置了你的选项,点击按钮 | ||
55 | |||
56 | * 搜索:执行搜索 | ||
57 | * 应用:保存你的条件选项(//此选项仅在因性能原因停用“auto-submit”时可用//) | ||
58 | * 取消:取消选项和选择条目 | ||
59 | * 在屏幕上的任何地方执行默认操作搜索或应用 | ||
60 | ))) | ||
61 | |||
62 | === === | ||
63 | |||
64 | === 删除条件 === | ||
65 | |||
66 | |||
67 | 您可以通过单击红色的x图标来删除条件。请注意,这种删除通常会自动刷新列表。 | ||
68 | |||
69 | [[[[image:https://www.itophub.io/wiki/media?w=800&tok=f1cd50&media=3_0_0:user:search-remove-criteria.png]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:search-remove-criteria.png]] | ||
70 | |||
71 | |||
72 | 默认情况下,条件带有任何,这意味着它不会对结果进行过滤,因此删除它对结果列表没有影响。 | ||
73 | |||
74 | === === | ||
75 | |||
76 | === 保存搜索 === | ||
77 | |||
78 | |||
79 | 你可以在结果列表上使用创建快捷方式…操作来保存搜索结果. | ||
80 | |||
81 | [[[[image:https://www.itophub.io/wiki/media?w=800&tok=a35b60&media=3_0_0:user:search-create-shortcut.png||alt="Save a search in Shortcut"]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:search-create-shortcut.png]] | ||
82 | |||
83 | * 这会创建一个快捷方式,当后续打开它时,所有**设置的**条件都会在那里。 | ||
84 | * 带有任何的条件不会存储,因此会丢失,但这并不会改变搜索结果。 | ||
85 | |||
86 | === === | ||
87 | |||
88 | === 重新搜索 === | ||
89 | |||
90 | |||
91 | 可以使用搜索按钮再次强制执行搜索 ([[[[image:https://www.itophub.io/wiki/media?media=3_0_0:user:refresh-search.png||alt="Refresh button"]]>>url:https://www.itophub.io/wiki/media-detail?id=3_0_0:user:search&media=3_0_0:user:refresh-search.png]]). | ||
92 | |||
93 | 一般来说,它是无用的,因为对条件的任何更改或删除条件都会刷新列表,但如果在执行搜索后创建或修改了与条件匹配的另一个对象,则刷新是有用的。另一种需要它的情况是,由于性能问题,对于这个特定类的搜索不是自动的。 | ||
94 | |||
95 | == == | ||
96 | |||
97 | == 搜索功能 == | ||
98 | |||
99 | |||
100 | 这里列出了每种属性类型的详细搜索功能。 | ||
101 | |||
102 | === === | ||
103 | |||
104 | === 文本 === | ||
105 | |||
106 | 这适用于简单的文本、html和工单日志。 [[[[image:https://www.itophub.io/wiki/media?w=300&tok=bdd157&media=3_0_0:user:searchmorestring.png]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:searchmorestring.png]] | ||
107 | |||
108 | |||
109 | (% class="box infomessage" %) | ||
110 | ((( | ||
111 | [[image:http://wiki.itop.work/docs/images/warning.png||alt="警告"]] 如果出于性能考虑,在字段上声明了一个_索引_,那么默认操作符不是包含而是**等于**。工单的**编号**字段就是这样的。 | ||
112 | ))) | ||
113 | |||
114 | |||
115 | 你甚至可以使用正则表达式(//regex//) | ||
116 | |||
117 | |||
118 | (% class="box infomessage" %) | ||
119 | ((( | ||
120 | [[image:http://wiki.itop.work/docs/images/note.png||alt="提示"]] **%是一个映射任意字符串的**特殊字符,因此可以搜索 | ||
121 | ))) | ||
122 | |||
123 | * (% class="box infomessage" %) | ||
124 | ((( | ||
125 | //php%syntax// 可以搜索在_php_ 和 _syntax_包含任意内容的这个顺序的内容 | ||
126 | ))) | ||
127 | * (% class="box infomessage" %) | ||
128 | ((( | ||
129 | 要搜索确切的字符 **%** ,需要输入 **\%** (反斜杠) | ||
130 | ))) | ||
131 | |||
132 | |||
133 | |||
134 | === 数字 === | ||
135 | |||
136 | 你可以根据数字进行过滤:大于, 小于, 之间,… | ||
137 | |||
138 | [[[[image:https://www.itophub.io/wiki/media?w=300&tok=023399&media=3_0_0:user:searchinteger.png]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:searchinteger.png]] | ||
139 | |||
140 | === === | ||
141 | |||
142 | === 选择列表 === | ||
143 | |||
144 | |||
145 | 它提供了可用值的完整列表,你可以选择它们: //全部// 、 //无// 、一个或多个。 | ||
146 | |||
147 | |||
148 | [[[[image:https://www.itophub.io/wiki/media?w=500&tok=7e1e54&media=3_0_0:user:search-enum.png||alt="Search on Enum"]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:search-enum.png]] | ||
149 | |||
150 | === === | ||
151 | |||
152 | === 对象 === | ||
153 | |||
154 | |||
155 | 根据对象的数量,它将提出完整的对象列表或自动完成模式来检索您需要的对象。你可以选择预留的那些,同时搜索其他的。 | ||
156 | |||
157 | |||
158 | [[[[image:https://www.itophub.io/wiki/media?media=3_0_0:user:searchextkeyselected.png]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:searchextkeyselected.png]] | ||
159 | |||
160 | |||
161 | 可以合并确切的值和 //未定义// 的值(未定义的值代表着未记录,在OQL中=0)。 | ||
162 | |||
163 | [[[[image:https://www.itophub.io/wiki/media?w=600&tok=899a9b&media=3_0_0:user:searchextkeyundefined.png||alt="Search undefined OR a given value"]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:searchextkeyundefined.png]] | ||
164 | |||
165 | === === | ||
166 | |||
167 | === 层次结构 === | ||
168 | |||
169 | |||
170 | Sometime objects are organized in hierarchy. It’s the case on the iTop standard datamodel of the **Organization**. This field looks like a normal object when you try to filter on it, but it’s behavior behind the scene, is quite different as when you search for Person belonging to the Organization //IT Department//, then it will search for any Person belonging to **any** //IT Department// **sub-organizations**, parsing the Organization tree structure **recursively**: | ||
171 | |||
172 | 有时对象以层次结构组织。这是iTop标准数据模型中**组织**对象的情况。当尝试在此字段上进行过滤时,它看起来像一个普通对象,但在其后台行为方面,它与搜索属于 IT部门 的人员时完全不同,它会**递归**解析组织树形结构,搜索属于任何 IT部门 **子组织**的人员: | ||
173 | |||
174 | * ((( | ||
175 | //IT Department// | ||
176 | |||
177 | * | ||
178 | |||
179 | //IT Special// | ||
180 | |||
181 | * | ||
182 | ** //Software Service// | ||
183 | ** Service n°2 | ||
184 | * | ||
185 | |||
186 | Division B | ||
187 | |||
188 | * | ||
189 | ** Service n°3 | ||
190 | ))) | ||
191 | |||
192 | [[[[image:https://www.itophub.io/wiki/media?w=800&tok=43c9eb&media=3_0_0:user:search-hierarchy-criteria.png]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:search-hierarchy-criteria.png]] | ||
193 | |||
194 | === === | ||
195 | |||
196 | === 日期 === | ||
197 | |||
198 | |||
199 | [[[[image:https://www.itophub.io/wiki/media?w=400&tok=6e8fca&media=3_0_0:user:searchdatemore.png]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:searchdatemore.png]] | ||
200 | |||
201 | |||
202 | iTop默认使用以下格式来表示 //日期// 和 //时间// : | ||
203 | |||
204 | * 日期: 首先 //年// 显示为4位数字,接着是一个破折号,后跟用2位数字表示的 //月// ,然后是一个破折号,最后是用2位数字表示的 //日// 。(简而言之:YYYY-MM-DD) | ||
205 | * 日期和时间:以上述格式开始一个日期,接着是一个空格,然后用2位数字表示的 //小时//(24小时制)后跟一个冒号(:),然后是用2位数字表示的 //分钟// 后跟一个冒号(:),最后是用2位数字表示的 //秒// 。(简而言之:YYYY-MM-DD hh:mm:ss) | ||
206 | |||
207 | |||
208 | 您的管理员可以定义其他格式,这可能取决于您的语言。 | ||
209 | |||
210 | [[[[image:https://www.itophub.io/wiki/media?w=400&tok=4dbdb7&media=3_0_0:user:searchdate.png]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:searchdate.png]] | ||
211 | |||
212 | === === | ||
213 | |||
214 | === 最近使用 === | ||
215 | |||
216 | |||
217 | 在选择搜索条件时,最多列出5个名称的第一个列表是为此类对象使用的最后条件。它们按时间顺序排序,最近使用的排在第一位。即使关闭浏览器,它们仍将保留,因为它们存储在您的用户首选项中。 | ||
218 | |||
219 | |||
220 | [[[[image:https://www.itophub.io/wiki/media?w=200&tok=4a029d&media=3_0_0:user:search-recently-used.png]]>>url:https://www.itophub.io/wiki/media?media=3_0_0:user:search-recently-used.png]] | ||
221 | |||
222 | * **最常用** 由您的管理员定义,比其它更有用的。按字母顺序排列。 | ||
223 | * **其它** 这些是其他的对象属性,不太可能用作搜索条件,但如果需要的话可以使用。 | ||
224 | * //在**最近使用**中列出的所有名称,同时也列在其它列表中。// | ||
225 | |||
226 | == == | ||
227 | |||
228 | == 全局搜索 == | ||
229 | |||
230 | |||
231 | **全局搜索**功能位于所有iTop页面的左上角。 | ||
232 | |||
233 | [[[[image:https://www.itophub.io/wiki/media?media=3_0_0:user:global-search.png||alt="Global search"]]>>url:https://www.itophub.io/wiki/media-detail?id=3_0_0:user:search&media=3_0_0:user:global-search.png]] | ||
234 | |||
235 | 全局搜索在iTop的所有对象中搜索给定的文本字符串。要启动搜索,请**输入要搜索的文本**并单击**放大镜图标**或按下键盘的**回车**键。 | ||
236 | |||
237 | 搜索结果按组显示:所有匹配的同类对象被分组在一个表中。 | ||
238 | |||
239 | 由于全局搜索搜索iTop数据库中的所有对象,因此当对象数量增加时,它可能变得相当慢。但是,您可以通过将其范围限制为特定类别的对象来加快搜索速度。指定全局搜索范围的语法如下: class_name: text_to_search。 | ||
240 | |||
241 | [[[[image:https://www.itophub.io/wiki/media?media=3_0_0:user:global-search-server.png||alt="Global search scope: Server"]]>>url:https://www.itophub.io/wiki/media-detail?id=3_0_0:user:search&media=3_0_0:user:global-search-server.png]] | ||
242 | |||
243 | 搜索 **Server:webserv** 将在所有服务器对象中搜索包含文本“webserv”的任何字段。 | ||
244 | |||
245 | 为了限制范围,您还可以将X指定为包含子类的类。例如: | ||
246 | |||
247 | [[[[image:https://www.itophub.io/wiki/media?media=3_0_0:user:global-search-contact.png||alt="Global search scope: Contact"]]>>url:https://www.itophub.io/wiki/media-detail?id=3_0_0:user:search&media=3_0_0:user:global-search-contact.png]] | ||
248 | |||
249 | 搜索 **Contact:dali** 将搜索包含 dali 的所有团队和人员的任何字段。 | ||
250 | |||
251 | 全局搜索是 //不// 区分大小写的。搜索 **Dali**, **dali** 或者 **DALI** 将给出相同的结果。 | ||
252 | |||
253 | |||
254 | (% class="box infomessage" %) | ||
255 | ((( | ||
256 | [[对象显示和修改>>url:http://wiki.itop.work/docs/enduser/05-actions/]] ← 上一篇 | 下一篇 → [[管理列表>>url:http://wiki.itop.work/docs/enduser/07-managing_lists/]] | ||
257 | ))) | ||
258 | |||
259 | ---- | ||
260 | |||
261 | 原文:[[https:~~/~~/www.itophub.io/wiki/page?id=3_0_0:user:search>>url:https://www.itophub.io/wiki/page?id=3_0_0:user:search]] | ||
262 | |||
263 | 版本:3_0_0/user/search.txt · Last modified: 2022/01/21 16:52 (external edit) |