Global configurations

General configuration for the whole application.abs

This module contains constants and configuration options for the search engine, that allows to quickly customize the threshold, matching parameters’ weights and other options without having to touch the code.

search.config.DIST_WEIGHT = 1

positional coeff weight for weighted avg with equality match

search.config.MATCH_WEIGHT = 1

string equality weight for weighted average with positional coefficient

search.config.MIN_WORD_LENGTH = 3

minimum length for a word to be considered in the search

search.config.STOP_WORDS = []

words marked as stopwords will be excluded by the tokenizer functions

search.config.STR_SPLIT_REGEX = ‘\W+’

Regex that will be used to split a string into separate chunks

search.config.THRESHOLD = 0.75

matching threshold for a resource to be considered for the inclusion.