summaryrefslogtreecommitdiffstats
path: root/vespa-documentgen-plugin/etc/localapp
diff options
context:
space:
mode:
Diffstat (limited to 'vespa-documentgen-plugin/etc/localapp')
-rw-r--r--vespa-documentgen-plugin/etc/localapp/book.sd89
-rw-r--r--vespa-documentgen-plugin/etc/localapp/common.sd45
-rw-r--r--vespa-documentgen-plugin/etc/localapp/music.sd70
-rw-r--r--vespa-documentgen-plugin/etc/localapp/video.sd54
4 files changed, 258 insertions, 0 deletions
diff --git a/vespa-documentgen-plugin/etc/localapp/book.sd b/vespa-documentgen-plugin/etc/localapp/book.sd
new file mode 100644
index 00000000000..72faa934aa6
--- /dev/null
+++ b/vespa-documentgen-plugin/etc/localapp/book.sd
@@ -0,0 +1,89 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search book {
+ document book inherits common {
+ struct ss0 {
+ field s0 type string{}
+ field d0 type double{}
+ }
+ struct ss1 {
+ field s1 type string { }
+ field l1 type long { }
+ field i1 type int { }
+ field d1 type double { }
+ field as1 type array<string> { }
+ field al1 type array<long> { }
+ field ss01 type ss0 {}
+ }
+
+ struct ss2 {
+ field s21 type string {}
+ field ss02 type ss0 {}
+ }
+
+ field mystruct type ss1 {
+ }
+
+ field mystruct2 type ss2 {}
+
+ field mywsfloat type weightedset<float> {
+ indexing: attribute
+ }
+
+ field myarrayint type array<int> {
+ indexing: attribute
+ }
+
+ field mytriplearray type array<array<array<int>>> {}
+
+ field stringmap type map<string, string> {
+ }
+
+ field structmap type map<int, ss1> {
+ }
+
+ field mysinglestructarray type array<ss1> {}
+ #field mydoublestructarray type array<array<ss1>> {}
+
+ field author type string {
+ bolding: on
+ # index-to: default, author
+ indexing: summary | index
+ }
+ field isbn type string {
+ # index-to: default, isbn
+ indexing: summary | index
+ }
+ field year type int {
+ indexing: summary | index
+ }
+ field description type string {
+ # index-to: default, description
+ indexing: summary | index
+ summary: dynamic
+ }
+
+ field myraw type raw {}
+ }
+
+ field sw1 type float {
+ indexing {
+ input weight * 6 + input w1 + input w2 | summary;
+ }
+ }
+
+ field didinteger type array<int> {
+ indexing: input did | split " " | for_each { to_int } | attribute
+ }
+
+ rank-profile default {
+ first-phase {
+ expression: nativeRank
+ }
+ }
+ rank-profile rp1 inherits default {
+ #static-rank: weight1
+ }
+ rank-profile rp2 inherits default {
+ #static-rank: weight2
+ }
+}
diff --git a/vespa-documentgen-plugin/etc/localapp/common.sd b/vespa-documentgen-plugin/etc/localapp/common.sd
new file mode 100644
index 00000000000..724897b4e7f
--- /dev/null
+++ b/vespa-documentgen-plugin/etc/localapp/common.sd
@@ -0,0 +1,45 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search common {
+ document common {
+ field uri type string {
+ indexing: summary
+ }
+ field title type string {
+ bolding: on
+ # index-to: default, title
+ indexing: index|summary
+ summary-to: smallsum
+ }
+ field mid type int {
+ indexing: attribute|index|summary
+ }
+ field scorekey type string {
+ indexing: summary
+ }
+ field weight type float {
+ indexing: attribute|summary
+ }
+ field w1 type float {
+ indexing: summary
+ }
+ field w2 type float {
+ indexing: summary
+ }
+ field did type string {
+ indexing: attribute|index|summary
+ }
+ field ew type string {
+ indexing: index|summary
+ }
+ annotation date {
+ field exacttime type long { }
+ }
+
+ annotation emptyannotation {}
+ }
+ rank-profile default {
+ first-phase {
+ expression: nativeRank
+ }
+ }
+}
diff --git a/vespa-documentgen-plugin/etc/localapp/music.sd b/vespa-documentgen-plugin/etc/localapp/music.sd
new file mode 100644
index 00000000000..e00e046f511
--- /dev/null
+++ b/vespa-documentgen-plugin/etc/localapp/music.sd
@@ -0,0 +1,70 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search music {
+ document music inherits common {
+ field artist type string {
+ bolding: on
+ # index-to: default, artist
+ indexing: index|summary
+ }
+ field disp_song type string {
+ indexing: summary
+ }
+ field song type string {
+ # index-to: default, song
+ indexing: index
+ }
+ field isbn type string {
+ bolding: on
+ # index-to: default, isbn
+ indexing: index|summary
+ }
+ field year type int {
+ indexing: attribute|index|summary
+ }
+ annotation recordlabel {}
+
+ annotation person {
+ field name type string { }
+ }
+
+ annotation artist inherits person {
+ field instrument type int { }
+ }
+
+ annotation place {
+ field lat type long { }
+ field lon type long { }
+ }
+
+ annotation event {
+ field description type string { }
+ field person type annotationreference<person> { }
+ field date type annotationreference<date> { }
+ field place type annotationreference<place> { }
+ }
+ }
+
+ field sw1 type float {
+ indexing {
+ input weight * 6 + input w1 + input w2 | summary;
+ }
+ }
+
+ field didinteger type array<int> {
+ indexing: input did | split " " | for_each { to_int } | attribute
+ }
+
+ rank-profile default {
+ first-phase {
+ expression: nativeRank
+ }
+ }
+ rank-profile rp1 inherits default {
+ #static-rank: weight1
+ }
+ rank-profile rp2 inherits default {
+ #static-rank: weight2
+ }
+
+
+}
diff --git a/vespa-documentgen-plugin/etc/localapp/video.sd b/vespa-documentgen-plugin/etc/localapp/video.sd
new file mode 100644
index 00000000000..fc7f58298c1
--- /dev/null
+++ b/vespa-documentgen-plugin/etc/localapp/video.sd
@@ -0,0 +1,54 @@
+# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+search video {
+ document video inherits common {
+ field director type string {
+ bolding: on
+ # index-to: default, director
+ indexing: index|summary
+ }
+ field disp_actor type string {
+ bolding: on
+ # index-to: default, disp_actor
+ indexing: index|summary
+ }
+ field actor type string {
+ bolding: on
+ # index-to: default, actor
+ indexing: index|summary
+ }
+ field fmt type string {
+ # index-to: default, fmt
+ indexing: index|summary
+ }
+ field isbn type string {
+ bolding: on
+ # index-to: default, isbn
+ indexing: index|summary
+ }
+ field year type int {
+ indexing: attribute|index|summary
+ }
+ }
+
+ field sw1 type float {
+ indexing {
+ input weight * 6 + input w1 + input w2 | summary;
+ }
+ }
+
+ field didinteger type array<int> {
+ indexing: input did | split " " | for_each { to_int } | attribute
+ }
+
+ rank-profile default {
+ first-phase {
+ expression: nativeRank
+ }
+ }
+ rank-profile rp1 inherits default {
+ #static-rank: weight1
+ }
+ rank-profile rp2 inherits default {
+ #static-rank: weight2
+ }
+}