Imeji search

From MPDLMediaWiki
Jump to navigation Jump to search
Imeji logo.png

Internal
Meetings
Cooperation

Specification
Architecture
Installer
Ingest
Functional Specification
Technical Specification

Metadata
RDF mapping
Metadata terms

edit

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:
  1. the basic indexes. These are the indexes based on the data model of imeji
  2. 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"