mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-27 00:29:04 -04:00
fix(search): keep livePhoto.contentId out of the search siblings
This commit is contained in:
1 parent
a7214b3d73
commit
0a4f3ed786
3 files changed
+10
-41
No files matched your search
@@ -734,30 +734,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"contentId_lowercase": {
|
||||
"enabled": true,
|
||||
"dynamic": true,
|
||||
"fields": [
|
||||
{
|
||||
"type": "text",
|
||||
"analyzer": "keyword",
|
||||
"index": true,
|
||||
"include_term_vectors": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"contentId_words": {
|
||||
"enabled": true,
|
||||
"dynamic": true,
|
||||
"fields": [
|
||||
{
|
||||
"type": "text",
|
||||
"analyzer": "words",
|
||||
"index": true,
|
||||
"include_term_vectors": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"stillImageTimeUs": {
|
||||
"enabled": true,
|
||||
"dynamic": true,
|
||||
|
||||
@@ -196,14 +196,6 @@
|
||||
"contentId": {
|
||||
"type": "keyword"
|
||||
},
|
||||
"contentId_lowercase": {
|
||||
"doc_values": false,
|
||||
"type": "keyword"
|
||||
},
|
||||
"contentId_words": {
|
||||
"analyzer": "words",
|
||||
"type": "text"
|
||||
},
|
||||
"stillImageTimeUs": {
|
||||
"type": "long"
|
||||
},
|
||||
|
||||
@@ -79,15 +79,16 @@ var resourceFieldOverrides = sync.OnceValue(func() map[string]mapping.FieldOpts
|
||||
// every keyword field searches case-insensitively and by word (name,
|
||||
// title, the facets) unless opted out: ids are opaque, paths are POSIX,
|
||||
// the mime type is normalized already, a tag is one label
|
||||
"ID": {CaseInsensitive: &False, NoWordBreaker: &True},
|
||||
"RootID": {CaseInsensitive: &False, NoWordBreaker: &True},
|
||||
"ParentID": {CaseInsensitive: &False, NoWordBreaker: &True},
|
||||
"Path": {Type: mapping.TypePath, CaseInsensitive: &False},
|
||||
"MimeType": {CaseInsensitive: &False, NoWordBreaker: &True},
|
||||
"Content": {Type: mapping.TypeFulltext},
|
||||
"Tags": {NoWordBreaker: &True, IncludeInAll: &False},
|
||||
"Favorites": {NoWordBreaker: &True, IncludeInAll: &False, CaseInsensitive: &False}, // opaque user ids
|
||||
"location": {Type: mapping.TypeGeopoint},
|
||||
"ID": {CaseInsensitive: &False, NoWordBreaker: &True},
|
||||
"RootID": {CaseInsensitive: &False, NoWordBreaker: &True},
|
||||
"ParentID": {CaseInsensitive: &False, NoWordBreaker: &True},
|
||||
"Path": {Type: mapping.TypePath, CaseInsensitive: &False},
|
||||
"MimeType": {CaseInsensitive: &False, NoWordBreaker: &True},
|
||||
"Content": {Type: mapping.TypeFulltext},
|
||||
"Tags": {NoWordBreaker: &True, IncludeInAll: &False},
|
||||
"Favorites": {NoWordBreaker: &True, IncludeInAll: &False, CaseInsensitive: &False}, // opaque user ids
|
||||
"livePhoto.contentId": {NoWordBreaker: &True, CaseInsensitive: &False}, // opaque pairing uuid
|
||||
"location": {Type: mapping.TypeGeopoint},
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user