summaryrefslogtreecommitdiffstats
path: root/documentgen-test/etc/complex/book.sd
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2022-03-12 20:16:12 +0000
committerArne H Juul <arnej@yahooinc.com>2022-03-12 20:29:17 +0000
commit05c252f2a05c562b57921158ba4cf15ba5ee07fe (patch)
treef52c0da7dea5497605623028d11a770044993425 /documentgen-test/etc/complex/book.sd
parentc4ac024bfedb431acf2472c883d1d3712a24c506 (diff)
long-overdue cleanup
* various invalid content here, was hidden by adding the same field twice, triggering other bugs. * fix some warnings * don't declare the same annotation twice
Diffstat (limited to 'documentgen-test/etc/complex/book.sd')
-rw-r--r--documentgen-test/etc/complex/book.sd8
1 files changed, 2 insertions, 6 deletions
diff --git a/documentgen-test/etc/complex/book.sd b/documentgen-test/etc/complex/book.sd
index 96e76c1e2b4..ace6c33e440 100644
--- a/documentgen-test/etc/complex/book.sd
+++ b/documentgen-test/etc/complex/book.sd
@@ -50,7 +50,7 @@ search book {
indexing: summary | index
}
field year type int {
- indexing: summary | index
+ indexing: summary | attribute
}
field description type string {
indexing: summary | index
@@ -71,10 +71,6 @@ search book {
import field ref.dummy as my_dummy {}
import field ref.foo as my_foo {}
- field sw1 type float {
- }
- field didinteger type array<int> {
- }
rank-profile default {
first-phase {
expression: nativeRank
@@ -87,7 +83,7 @@ search book {
}
field sw1 type float {
- indexing: input weight * 6 + input w1 + input w2 | summary
+ indexing: input weight_src * 67 + input w1_src + input w2_src | summary
}
field didinteger type array<int> {
indexing: input did | split " " | for_each { to_int } | attribute