From d42b23544a7be70542cc0d3350da864f130ffa4c Mon Sep 17 00:00:00 2001 From: DariusIII Date: Sun, 26 Feb 2023 14:22:19 +0100 Subject: [PATCH] Update manticore search config. Closes #1276 --- misc/manticoresearch/manticore.conf | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/misc/manticoresearch/manticore.conf b/misc/manticoresearch/manticore.conf index 3d35e5114..e6ac2c2ce 100644 --- a/misc/manticoresearch/manticore.conf +++ b/misc/manticoresearch/manticore.conf @@ -11,7 +11,7 @@ index releases_rt # keywords is much faster to index with substrings, and index is much (3-10x) smaller # keywords supports wildcards, crc does not, and never will # optional, default is 'keywords' - # dict = keywords + dict = keywords # !*: These allow wildcard searches, they take more ram/disk space. # !*: If you want to turn it off, put min_infix_len, min_prefix_len and enable_star to 0. @@ -27,9 +27,16 @@ index releases_rt # # !*: DO NOT ENABLE BOTH min_prefix_len AND min_infix_len AT THE SAME TIME. # - min_prefix_len = 0 + min_prefix_len = 1 min_infix_len = 2 + # Expands keywords with their exact forms (i.e. the forms of the keywords before applying any morphological modifications) and/or stars when possible. The supported values are: + # + # 1 - expand to both the exact form and the form with the stars. running will become (running | *running* | =running) + # exact - augment the keyword with only its exact form. running will become (running | =running) + # star - augment the keyword by adding * around it. running will become (running | *running*) Optional, default is 0 (do not expand keywords). + expand_keywords = 1 + # !*: Path to where the index files will be stored. # !*: http://sphinxsearch.com/docs/current.html#conf-path path = /var/lib/manticore/data/releases_rt @@ -63,7 +70,7 @@ index predb_rt # keywords is much faster to index with substrings, and index is much (3-10x) smaller # keywords supports wildcards, crc does not, and never will # optional, default is 'keywords' - # dict = keywords + dict = keywords # !*: These allow wildcard searches, they take more ram/disk space. # !*: If you want to turn it off, put min_infix_len, min_prefix_len and enable_star to 0. @@ -79,9 +86,16 @@ index predb_rt # # !*: DO NOT ENABLE BOTH min_prefix_len AND min_infix_len AT THE SAME TIME. # - min_prefix_len = 0 + min_prefix_len = 1 min_infix_len = 2 + # Expands keywords with their exact forms (i.e. the forms of the keywords before applying any morphological modifications) and/or stars when possible. The supported values are: + + # 1 - expand to both the exact form and the form with the stars. running will become (running | *running* | =running) + # exact - augment the keyword with only its exact form. running will become (running | =running) + # star - augment the keyword by adding * around it. running will become (running | *running*) Optional, default is 0 (do not expand keywords). + expand_keywords = 1 + # !*: Path to where the index files will be stored. # !*: http://sphinxsearch.com/docs/current.html#conf-path path = /var/lib/manticore/data/predb_rt