import re


ADVANCED_QUERY_KEY = 'advancedQuery'
ALL = 'all'
AND = 'AND'
AND_JOIN = ' AND '
AND_NOT_JOIN = ' AND NOT '
APPENDED = 'appended'
APPLICATION_JSON = 'application/json'
ASC = 'asc'
AT_ID = '@id'
AT_CONTEXT = '@context'
AT_TYPE = '@type'
AUDIT = 'audit'
AUDIT_TITLE = 'Audit'
BOOL = 'bool'
BOOST_VALUES = 'boost_values'
BUCKETS = 'buckets'
CART_KEY = 'cart'
CLEAR_FILTERS = 'clear_filters'
COLLECTION_NAME = 'item_type'
COLON = ':'
COLUMNS = 'columns'
CONFIG_KEY = 'config'
DASH = '-'
DEBUG_KEY = 'debug'
DESC = 'desc'
DOC_COUNT = 'doc_count'
EMBEDDED = 'embedded.'
EMBEDDED_FRAME = 'embedded'
EMBEDDED_TYPE = 'embedded.@type'
EXCLUDE = 'exclude'
EXISTS = 'exists'
FACETS = 'facets'
FIELD_KEY = 'field'
FILTERS = 'filters'
FRAME_KEY = 'frame'
FROM_KEY = 'from'
GRAPH = '@graph'
GROUP_BY = 'group_by'
GROUP_SUBMITTER = 'group.submitter'
HITS = 'hits'
ITEM = 'Item'
INEQUALITY_REGEX = re.compile('(lt|lte|gt|gte):')
JS_IS_EQUAL = 'isEqual'
JS_TRUE = True
JS_FALSE = False
JSONLD_CONTEXT = 'jsonld_context'
KEY = 'key'
LIMIT_KEY = 'limit'
LENGTH = 'length'
LONG = 'long'
MATRIX = 'matrix'
MATRIX_TITLE = 'Matrix'
MAX = 'max'
MAX_SCORE = 'max_score'
MUST = 'must'
MUST_NOT = 'must_not'
MODE_KEY = 'mode'
NO = 'no'
NO_LIMIT = 999999
NO_RESULTS_FOUND = 'No results found'
NON_SORTABLE = 'non_sortable'
NOT_EXISTS = 'not_exists'
NOT_JOIN = ' NOT '
NOT_FLAG = '!'
NOT_RANGES = 'not_ranges'
NOTIFICATION = 'notification'
OBJECT_FRAME = 'object'
OPEN_ON_LOAD = 'open_on_load'
ORDER = 'order'
PERIOD = '.'
PICKER = 'picker'
PRINCIPALS_ALLOWED_VIEW = 'principals_allowed.view'
PROPERTIES = 'properties'
QUERY_STRING = 'query_string'
RANGE = 'range'
RANGES = 'ranges'
RAW_QUERY = 'raw_query'
REMOVE = 'remove'
REPORT_TITLE = 'Report'
SEARCH_AUDIT = 'search_audit'
SEARCH_BASE = 'search_base'
SEARCH_CONFIG = 'search_config'
SEARCH_PATH = '/search/'
SEARCH_TITLE = 'Search'
SEARCH_TERM_KEY = 'searchTerm'
SIMPLE_QUERY_STRING = 'simple_query_string'
SORT_KEY = 'sort'
_SCORE = '_score'
_SOURCE = '_source'
STATS = 'stats'
SUCCESS = 'Success'
SUMMARY_TITLE = 'Summary'
SUMMARY_MATRIX = 'summary_matrix'
TITLE = 'title'
TERM = 'term'
TERMS = 'terms'
TOP_HITS = 'top_hits'
TOP_TYPES = 'top_types'
TOTAL = 'total'
TYPES = 'types'
TYPE_KEY = 'type'
WILDCARD = '*'
X = 'x'
Y = 'y'
YES = 'yes'
