diff options
Diffstat (limited to 'node-admin/basic-search-for-docker/src/main/application/searchdefinitions/music.sd')
-rw-r--r-- | node-admin/basic-search-for-docker/src/main/application/searchdefinitions/music.sd | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/node-admin/basic-search-for-docker/src/main/application/searchdefinitions/music.sd b/node-admin/basic-search-for-docker/src/main/application/searchdefinitions/music.sd new file mode 100644 index 00000000000..d6bcaac8ae0 --- /dev/null +++ b/node-admin/basic-search-for-docker/src/main/application/searchdefinitions/music.sd @@ -0,0 +1,40 @@ +search music { + document music { + field artist type string { + indexing: summary | index + } + field artistId type string { + indexing: summary | attribute + } + + field title type string { + indexing: summary | index + } + + field album type string { + indexing: index + } + + field duration type int { + indexing: summary + } + + field year type int { + indexing: summary | attribute + } + + field popularity type int { + indexing: summary | attribute + } + } + + fieldset default { + fields: artist, title, album + } + + rank-profile song inherits default { + first-phase { + expression:nativeRank(artist,title,album) + if(isNan(attribute(popularity)) == 1, 0,attribute(popularity)) + } + } +} |