搜索

iTop中大多数对象的详细信息中都包含搜索图标(Search icon)。单击此图标可以切换到多规则搜索图标。

使用AND运算符将搜索表单的所有条件组合在一起。这意味着,在搜索故障单时,如果将Demo指定为组织并将High指定为优先级,则搜索结果将列出组织Demo的所有具有较高优先级的故障单(Organization = Demo and Priority = High)。

A search result

您可能找不到所需的对象,并且可能有多种原因

由于您的用户权利,您无法看到它,

您已经在左上方的下拉列表中选择了组织,但对象不属于该列表,

对象已过时,而您的用户偏好并未说“显示已过时数据”,

电影的

添加规则

大多数搜索将带有预定义搜索标准,但是您可能希望搜索或添加新标准

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-add-criteria.png

1.打开添加规则框

2.您可以通过输入属性的开头来过滤器列表

3.您可以单击属性名称,它将添加为过滤规则并关闭该框

4.或者,您可以单击该复选框,它将选中它,但保持选中状态以选中更多规则,在这种情况下,即使单击名称,也只需单击它即可。只需在该框的最后按“应用”按钮

设置规则

1.打开一个规则框。建议的选项将依赖于属性的类型。

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-set-criteria.png

1.通过以下方式选择一个选项:

  • 在文本区域中输入数据,
  • 选择一个单选按钮
  • 检查一个或多个选择

2.如果您需要更多选项,请单击更多

3.设置好选项后,单击按钮

  • 搜索执行搜索
  • 请保存您的规则选项(仅当由于性能原因禁用“自动提交”时,此选项才可用)
  • 取消以放弃您的选择和输入
  • 屏幕上的任何位置以执行默认的功能搜索或应用

卸下规则

您可以通过单击红色x图标来删除规则。请注意,此删除操作通常会自动刷新列表。

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-remove-criteria.png

默认情况下,规则附带了any,这意味着它没有过滤器结果,因此将其删除对结果列表没有影响。

保存搜索

您可以使用结果列表中的创建快捷方式…功能保存搜索及其所有条件。

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-create-shortcut.png

  • 它将创建一个快捷方式,稍后再打开它时,所有设置的条件都将存在。
  • 带有any的规则不会存储,因此会丢失,但这不会变更的搜索结果。

重新运行搜索

您可以使用搜索按钮(https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-button.png)再次强制执行搜索。

通常,它是没有用的,因为任何变更到规则或删除规则都会刷新列表,但是如果自执行对象以来已创建或修改了另一个匹配规则的规则,则刷新很有用。另一个需要的情况是,由于搜索问题,​​该特定类的对象不是自动的。

搜索功能

这是每种类型的属性的搜索功能的详细信息

文本

这适用于简单的文本,html和caselog。

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchmorestring.png

您甚至可以使用常规的表达式(regex)

是映射任何字符串的特殊字符,因此搜索:

用于PHP和语法的PHP%语法搜索,介于两者之间

搜索以获取确切字符%要求键入\%(反斜杠)

号码

您在数字上的过滤器:上方,下方,之间,…

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchinteger.png

选择清单

它提供了可用值的完整列表,您可以选择它们:全部,无,一个或多个。

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-enum.png

对象

依赖上的对象数量,它将提议对象的完整列表

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchextkeyselected.png

或自动完成模式以检索您需要的内容,如您在图像中看到的,您可以选择搜索保留的其他内容。

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchextkeyautocomplete.png

您可以将实际值与未定义合并,这意味着未记录(OQL中为= 0)

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchextkeyundefined.png

日期

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchdatemore.png

默认情况下,iTop使用那些表示日期和时间的格式:

  • 日期:首先用4位数字显示年份,然后用破折号显示,然后用2位数字显示月份,然后用破折号显示,最后用2位数字显示日期。 (简而言之:YYYY-MM-DD)
  • 日期和时间:使用上述格式的日期开头,后跟一个空格,然后是2位数字的小时(24小时格式),然后是冒号 (:),接着是分钟的两位数是冒号 (:)和秒用两位数表示。 (简而言之:YYYY-MM-DD hh:mm:ss)。

您的管理员可以定义其他格式,这依赖于您的语言

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchdate.png

最近使用

选择搜索规则时,最多5个名称的第一个列表是用于此类objets的最后一个条件。它们按时间排序,最后使用的是第一个。由于它们存储在用户偏好中,因此即使在关闭浏览器后它们也将在那里。

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-recently-used.png

  • 最受欢迎的是那些由您的管理员定义为比其他功能更有用的功能。它们按字母顺序排列。
  • 其他是其余的对象属性,不太希望将它们用作搜索规则,但也可以根据需要使用。
  • 最近使用中列出的所有名称也在其他列表之一中列出

全球搜索

全局搜索特性位于所有iTop页面的右上角。

Global search

全局搜索在iTop中的所有对象内搜索给定的文本字符串。要启动搜索,请输入搜索的文本,然后单击放大镜搜索或按键盘的ENTER键。

搜索结果按组显示:同一类的所有匹配对象都分组在一个表中。

由于全局搜索在iTop数据库的所有对象中进行搜索,因此当对象的数量增加时,它会变得很慢。但是,可以通过将搜索限制为给定的对象类别来加快搜索的速度。用于指定全局搜索的搜索的范围如下:class_name:text_to_搜索。

Global search scope: Server

搜索服务器:webserv将对搜索查找所有在其任何字段中包含文本“ webserv”的服务器对象。

要限制范围,还可以将X指定为具有子类的类。例如:

Global search scope: Contact

搜索联系人:dali将为搜索查找在其任何字段中包含dali的所有团队和个人。

全局搜索不区分大小写。搜索Dali,dali或DALI会得到相同的结果。

原贴链接:https://www.itophub.io/wiki/page?id=2_7_0%3Auser%3Asearch


Search

A search icon (Search icon) is present on the details of most objects in iTop. Click on this icon to switch to a multi-criteria search form.

All the criterion of the search form are combined using an AND operator. This means that when searching for Tickets, if you specify Demo as the Organization and High as the priority, the search results will list all the Tickets of the Organization Demo which have a High priority (Organization = Demo and Priority = High).A search result

You may not find the object you are looking for, and there can be multiple reasons for this

  • You are not allowed to see it, due to your user rights,

  • You have selected an organization on the top left drop-down list and the object does not belong to it,

  • Object is obsolete and your user preferences don't say Show obsolete data,

Cinematic

Adding criteria

Most search will come with predefined search criterion, but you may want to change them or add new oneshttps://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-add-criteria.png

  1. Open the Add criteria box

  2. You can filter the list by entering the beginning of an attribute

  3. You can click on an attribute name, it will add it as a filtering criteria and close that box

  4. Or you can click on the checkbox, it will select it but leave the box open for selecting more criteria, in that case next click even on name will just checked it. Just press a Apply button at the very end of that box

Setting a criteria

  1. Open a criteria box. The proposed options will depend on the type of attribute.

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-set-criteria.png

  1. Select an option by:

    •  

    entering data in the text area,

    •  

    selecting a radio button

    •  

    checking one or more choices

  2. If you want more options, click on more

  3. Once you have set your option, click on button

    •  

    Search to execute the search

    •  

    Apply to save your criteria option (This option is only available when “auto-submit” is dis-activated for performance reason)

    •  

    Cancel to loose your option and entries

    •  

    anywhere in the screen to execute the default action search or Apply

Removing a criteria

You can remove a criteria by clicking on the red x icon. Note that this removal will in general refresh the list automatically.https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-remove-criteria.pngBy default a criteria comes with any, which means it does not filter the results, so removing it as no effect on the resulting list.

Saving a search

You can save a search with all its criterion, using the Create a Shortcut… action on the resulting list.https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-create-shortcut.png

  • It will create a shortcut and when you will open it later, all set criterion will be there.

  • A criteria with any is not stored, so is lost, but this does not change the results of your search.

Re-run a search

You can force the execution of the search again with the search button (Search button).

In general it is useless because any change to a criteria or removing a criteria will refresh the list, but if another object matching the criteria has been created or modified since the search was executed, then the refresh is useful. Another situation where it is needed is when the search for this particular class, due to performance issue, is not automatic.

Search Capabilities

Here are the search capabilities in details per type of Attribute

Text

This applies to simple text, html and caselog.https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchmorestring.png

If there is an index declared on a that field for performance reason, then the default operator is not Contains but Equals. This is the case for the Ref field of a Ticket.

You can even use regular expression (regex)

% is a special character mapping any string, so searching for:

  • PHP%syntax search for PHP and syntax in this order, with anything in between

  • to search for the exact character % requires to type \% (backslash)

Numbers

You filter on numbers: above, under, between,…https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchinteger.png

List of choices

It offers the full list of available values and you can select them: allnone, one or multiple.https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-enum.png

Objects

Depending on the number of objects, it will either propose the full list of objectshttps://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchextkeyselected.png

or an auto-complete mode to retrieve those you need, as you can see in the image, you can select some which are kept while you search for others.https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchextkeyautocomplete.png

You can combined real values and undefined which means not documented (=0 in OQL)https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchextkeyundefined.png

Date

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchdatemore.png

iTop uses by default those formats for representing dates and time :

  • Date: first the year is displayed with 4 digits, followed by a dash, followed by the month expressed with 2 digits, followed by a dash and finally the day with 2 digits. (In short: YYYY-MM-DD)

  • Date and time: start with a date using above format, followed by a space, then the hours with 2 digits (24 hour format) followed by a colon (:), followed by the minutes with two digits followed by a colon (:) and the seconds with two digits. (In short: YYYY-MM-DD hh:mm:ss).

Your administrator, can have defined other format and that can depend on your language

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearchdate.png

Recently used

When selecting search criteria, the first list of up to 5 names are the last criterion that you have used for this class of objets. They are ordered by time, last used being first. They will be there even after closing the browser, as they are stored in your user preference.

https://www.itophub.io/wiki/media?media=2_7_0%3Auser%3Asearch-recently-used.png

  • Most Popular are those defined by your administrator as more useful than others. They are in alphabetic order.

  • Others are the rest of the objects attributes, which are less expected to be used as search criteria, but may if you need.

  • All names listed in Recently used are also listed in one of the other lists

Global search

The Global search feature is located at the top right of all iTop pages.

Global search

The global search searches for the given string of text inside all the objects in iTop. To launch the search, enter the text to search for and click on the magnifying glass icon or press the ENTER key of your keyboard.

The search results are displayed by groups: all the matching objects of the same class are grouped together in one table.

Since the global search searches in all the objects of the iTop database, it can become quite slow when the number of object increases. However, you can speed-up the search by limiting its scope to a given class of objects. The syntax to specify the scope of the global search is as follows: class_name: text_to_search.

Global search scope: Server

Searching for Server:webserv will search for all server objects containing the text “webserv” in any of their fields.

To limit scope, you can also specify X as a class that has subclasses. For example:

Global search scope: Contact

Searching for Contact:dali will search for all Teams and Persons containing dali in any of their fields.

The global search is not case sensitive. Searching for Dalidali or DALI will give identical results.

标签:
由 superadmin 在 2020/08/25, 16:02 创建
    

需要帮助?

如果您需要有关XWiki的帮助,可以联系:

深圳市艾拓先锋企业管理咨询有限公司