-
Notifications
You must be signed in to change notification settings - Fork 11
Building Queries
nathan-opscode edited this page Sep 12, 2010
·
1 revision
iClassify provides full text search for the systems in the inventory. The underlying search engine is Solr. The full Lucene query syntax is available.
Within iClassify, all tags and attributes are searchable. For example, if a server has the tags:
- database
- web-server
- nagios-server
You would be able to find it with queries such as:
Sample tag query
tag:database tag:web-server tag:database AND tag:web-server
Additionally, lets say we wanted to find all the servers running Ubuntu 7.04. The two attributes we would require are “lsbdistid” and “lsbdistrelease”, and our query would be:
Sample attribute query
lsbdistid:Ubuntu AND lsbdistrelease:7.04
All the servers running Ubuntu 7.04 that are not databases:
Sample complex query
(lsbdistid:Ubuntu AND lsbdistrelease:7.04) NOT tag:database