mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Hide documentTemplate
and documentTemplateMaxBytes
when indexing_fragment is defined
This commit is contained in:
parent
be64006211
commit
d72e5f5f69
1 changed files with 12 additions and 2 deletions
|
@ -1932,8 +1932,18 @@ impl EmbeddingSettings {
|
|||
pooling: Setting::NotSet,
|
||||
api_key: Setting::some_or_not_set(api_key),
|
||||
dimensions: Setting::some_or_not_set(dimensions),
|
||||
document_template,
|
||||
document_template_max_bytes,
|
||||
document_template: if indexing_fragments.is_empty() && search_fragments.is_empty() {
|
||||
document_template
|
||||
} else {
|
||||
Setting::NotSet
|
||||
},
|
||||
document_template_max_bytes: if indexing_fragments.is_empty()
|
||||
&& search_fragments.is_empty()
|
||||
{
|
||||
document_template_max_bytes
|
||||
} else {
|
||||
Setting::NotSet
|
||||
},
|
||||
url: Setting::Set(url),
|
||||
indexing_fragments: if indexing_fragments.is_empty() {
|
||||
Setting::NotSet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue