searching¶
ghini exposes several search strategies, the most simple of which allows you to enter
values, or <TERMS>
, and ghini will attempt matching them against the data:
terms: |
Filter, based on the value of the default selection fields of any of the search
domains. The filter succeeds on an element of a domain if all the terms match for that element. If prefixed with the optional keyword The terms strategy can be seen as a shortcut to the following, where we limit
the search to a specific |
---|---|
domain: |
Filter based on the value of the default selection fields of the specified
The domain strategy can be seen as a shortcut to the following, in which we
explicitly mention the |
single field: |
Filter, based on the value of a single field of the specified domain. |
Besides the three above term matching strategies, we have a rather complex and powerful SQL-like search strategy.
sql-like: |
This is the most generic and powerful search. You give a search domain, then
specify an expression to be matched. The literal string
For domains that specify a geometry (for example, Please consider that ghini will fall back to one of the above more generic search strategies if the query is somehow incorrect. This will most likely return an empty result set. |
---|---|
depending: |
On any of the previous search strategies, you can append the query modifier |
Logged in users can use the ghini.server API to run these queries, or use the ghini.web interface to enter them and have the results nicely organized in the various ghini.web tabs.