1 Title: Quicksearch: now able to search with multiple filters
8 The classical quicksearch allowed certain filter prefixes,
9 which specified the item to look for. For example:
11 <li><tt>h:</tt> {search_text} # Find hostname, host_address or hostalias</li>
12 <li><tt>s:</tt> {search_text} # Find service</li>
13 <li><tt>hg:</tt> {search_text} # Find hostgroup</li>
14 <li><tt>sg:</tt> {search_text} # Find servicegroup</li>
17 The new search feature enhances the service search.<br>
18 You can now combine these filters to thin out the results.<br>
24 This will search for all services containing <tt>mem</tt> on the <tt>localhost</tt>.
25 Furthermore you can combine these filters.
28 s: mem s: cpu h: localhost h: switch-intern
31 This will search for all services containing <tt>mem</tt> <b>OR</b> <tt>cpu</tt> on
32 the hosts <tt>localhost</tt> <b>OR</b> <tt>switch-intern</tt>.
33 The search algorhytm is as follow:
35 <li>Same filters are combined with <tt>OR</tt></li>
36 <li>Different filters are combined with <tt>AND</tt></li>
41 h: localhost s: mem s: cpu h:switch-intern
43 actually results in the following livestatus query:
48 Columns: service_description host_name hostgroups servicegroups
49 Filter: host_name ~~ switch-intern
50 Filter: host_name ~~ localhost
52 Filter: service_description ~~ cpu
53 Filter: service_description ~~ mem
59 You can also add the <tt>hg:</tt> and <tt>sg:</tt> filters to the query.<br>
60 <b>Note:</b> Right now, this multisearch filter only works if at least one of the filters is a service ( <tt>s:</tt> ).