mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-15 19:00:44 +00:00
Hide documentTemplate
and documentTemplateMaxBytes
when indexing_fragment is defined
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user