Difference between revisions of "Imeji search"
Jump to navigation
Jump to search
Kleinfercher (talk | contribs) m (→Templates: small typo) |
Kleinfercher (talk | contribs) m (→Search indexes) |
||
Line 43: | Line 43: | ||
* Search indexes are represented in the query template by symbol: index | * Search indexes are represented in the query template by symbol: index | ||
* They are 2 types of indexes: | * They are 2 types of indexes: | ||
# the basic indexes. These are the | # 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 | # The metadata indexes. These are the indexes created when a new metadata is defined in a profile | ||
* To view the basic indexes <pre>imeji_url/export?format=explain&type=search</pre> | * To view the basic indexes <pre>imeji_url/export?format=explain&type=search</pre> |
Revision as of 09:38, 10 June 2013
|
This pages describes the search features in imeji.
Queries
Templates
- Advanced search
- all symbols (index, operator, searchvalue, logic, not) are explained in the next paragraphs.
- 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" logi index_operator_"searchvalue")
- simple search
q=searchvalue
Examples
Operators
- 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 Operations
- Logical operations are represented in the query template by symbol: logic
- The supported logical operations are:
- and
- or
Negation
- Negation are represented in the query template by symbol: not
- Negation is defined in the query with: not
Search value
- Search values are represented in the the query template by: searchvalue
- A search value can be any text
Search indexes
- 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"