diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-09-14 14:52:21 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2018-09-14 14:52:21 +0200 |
commit | a331d4b4500155f279a30020048628072d80c326 (patch) | |
tree | 0044c0828bd88595aab8699255f77b2c070f8dad /vespa-documentgen-plugin/etc/localapp | |
parent | 64e7bb2d7c51deb181308aac7fd92675f2d29d1d (diff) |
Use a normal SearchBuilder to get all sanity checks and preprocessing also when building concrete docs.
Diffstat (limited to 'vespa-documentgen-plugin/etc/localapp')
-rw-r--r-- | vespa-documentgen-plugin/etc/localapp/common.sd | 12 | ||||
-rw-r--r-- | vespa-documentgen-plugin/etc/localapp/music.sd | 2 |
2 files changed, 4 insertions, 10 deletions
diff --git a/vespa-documentgen-plugin/etc/localapp/common.sd b/vespa-documentgen-plugin/etc/localapp/common.sd index ada7ce7436a..724897b4e7f 100644 --- a/vespa-documentgen-plugin/etc/localapp/common.sd +++ b/vespa-documentgen-plugin/etc/localapp/common.sd @@ -17,19 +17,13 @@ search common { indexing: summary } field weight type float { - indexing { - input weight * 10 | attribute | summary; - } + indexing: attribute|summary } field w1 type float { - indexing { - input weight * 6 + input w1 | summary; - } + indexing: summary } field w2 type float { - indexing { - input w2 + input weight | summary; - } + indexing: summary } field did type string { indexing: attribute|index|summary diff --git a/vespa-documentgen-plugin/etc/localapp/music.sd b/vespa-documentgen-plugin/etc/localapp/music.sd index 0cfe5cf923a..e00e046f511 100644 --- a/vespa-documentgen-plugin/etc/localapp/music.sd +++ b/vespa-documentgen-plugin/etc/localapp/music.sd @@ -51,7 +51,7 @@ search music { } field didinteger type array<int> { - indexing: input did | split " " | attribute + indexing: input did | split " " | for_each { to_int } | attribute } rank-profile default { |