Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vespa schema changes for query control & general quality of life #163

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
10 changes: 0 additions & 10 deletions tests/local_vespa/test_app/schemas/document_passage.sd
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,6 @@ schema document_passage {
tokens
}
}

rank-profile exact inherits default {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleaning this up now we use exact_not_stemmed instead 🎉

function text_score() {
expression: attribute(passage_weight) * fieldMatch(text_block)
}
first-phase {
expression: text_score()
}
summary-features: text_score() fieldMatch(text_block)
}

rank-profile exact_not_stemmed inherits default {
function text_score() {
Expand Down
13 changes: 0 additions & 13 deletions tests/local_vespa/test_app/schemas/family_document.sd
Original file line number Diff line number Diff line change
Expand Up @@ -172,19 +172,6 @@ schema family_document {
fields: family_name_index, family_description_index
}

rank-profile exact inherits default {
function name_score() {
expression: attribute(name_weight) * fieldMatch(family_name_index)
}
function description_score() {
expression: attribute(description_weight) * fieldMatch(family_description_index)
}
first-phase {
expression: name_score() + description_score()
}
summary-features: name_score() description_score()
}

rank-profile exact_not_stemmed inherits default {
function name_score() {
expression: attribute(name_weight) * fieldMatch(family_name_not_stemmed)
Expand Down
Loading