-
Notifications
You must be signed in to change notification settings - Fork 15
Features: Search
q=searchvalue
Important note: some parts of the documentation on advanced search may be obsolete and not clear. Work in progress.
Note: _ _ is used here to separate two symbols which are not separated in the real query. q=(index_operator"searchvalue" logic not index_operator_"searchvalue") logic not (index_operator_"searchvalue" logic not index_operator_"searchvalue")
Operators are represented in the query template by symbol: operator The supported operators are:
- = : this is the basic equal. Means that a regular expression search will be performed
- == : This is the exact search. Only exact matching result will be find. Useful when searching for an uri (to find a specific resource)
- <= : lesser than. Works only if the search object type is compatible with search a search (number, date)
-
= : greater than. Works only if the search object type is compatible with search a search (number, date)
Logical operators are represented in the query template by symbol: logic The supported logical operations are:
- and
- or
- Negation are represented in the query template by symbol: not
- Negation is defined in the query with: not
Search values are represented in the the query template by: searchvalue A search value can be any text. The asterisk (*) can be used for right truncation, left truncation, and masking of letters in the middle of the word.
Search indexes are represented in the query template by symbol: index They are 2 types of indexes:
- the basic indexes. These are the indexes based on the data model of imeji
- The metadata indexes. These are the indexes created when a new metadata is defined in a profile
-
To view the basic indexes
imeji_url/export?format=explain&type=search
-
to view the metadata indexes
imeji_url/export?format=explain&type=metadata
-
To view only the metadata indexes for one collection
imeji_url/export?format=explain&type=metadata&q=col=="collection_uri"