mirror of
https://github.com/YGGverse/Yo.git
synced 2025-02-05 11:24:20 +00:00
update settings definition
This commit is contained in:
parent
a50ef908e2
commit
8a827bfcdf
@ -12,12 +12,7 @@
|
|||||||
"name":"yo_document",
|
"name":"yo_document",
|
||||||
"settings":
|
"settings":
|
||||||
{
|
{
|
||||||
"morphology":
|
"morphology":"stem_cz,stem_enru",
|
||||||
[
|
|
||||||
"stem_cz",
|
|
||||||
"stem_ar",
|
|
||||||
"stem_enru"
|
|
||||||
],
|
|
||||||
"index_exact_words":1,
|
"index_exact_words":1,
|
||||||
"html_strip":1,
|
"html_strip":1,
|
||||||
"min_word_len":3,
|
"min_word_len":3,
|
||||||
|
@ -81,16 +81,7 @@ $result = $index->create(
|
|||||||
'type' => 'integer'
|
'type' => 'integer'
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
(array) $config->manticore->index->document->settings
|
||||||
'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
|
|
||||||
)
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
echo sprintf(
|
echo sprintf(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user