Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Features: Search

Natasa Bulatovic edited this page Jul 22, 2016 · 2 revisions

Search

Simple search

q=searchvalue

Advanced search

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

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 operators 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 and Truncation

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

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"
    
Clone this wiki locally