Browse Source

update settings definition

main
ghost 1 year ago
parent
commit
8a827bfcdf
  1. 7
      example/config.json
  2. 11
      src/cli/index/init.php

7
example/config.json

@ -12,12 +12,7 @@ @@ -12,12 +12,7 @@
"name":"yo_document",
"settings":
{
"morphology":
[
"stem_cz",
"stem_ar",
"stem_enru"
],
"morphology":"stem_cz,stem_enru",
"index_exact_words":1,
"html_strip":1,
"min_word_len":3,

11
src/cli/index/init.php

@ -81,16 +81,7 @@ $result = $index->create( @@ -81,16 +81,7 @@ $result = $index->create(
'type' => 'integer'
]
],
[
'index_exact_words' => $config->manticore->index->document->settings->index_exact_words,
'html_strip' => $config->manticore->index->document->settings->html_strip,
'min_word_len' => $config->manticore->index->document->settings->min_word_len,
'min_prefix_len' => $config->manticore->index->document->settings->min_prefix_len,
'morphology' => implode(
',',
$config->manticore->index->document->settings->morphology
)
]
(array) $config->manticore->index->document->settings
);
echo sprintf(

Loading…
Cancel
Save