Skip to content

Relate labeled() to equivalent operators in other search engines - #4844

Merged
bratseth merged 1 commit into
masterfrom
arnej/compare-with-lucene
Aug 25, 2026
Merged

Relate labeled() to equivalent operators in other search engines#4844
bratseth merged 1 commit into
masterfrom
arnej/compare-with-lucene

Conversation

@arnej27959

Copy link
Copy Markdown
Member

Add a short note to the labeled() reference documentation pointing out that it plays the same role as Lucene's ConstantScoreQuery, reached via function_score in Elasticsearch/OpenSearch and via the ^= syntax in Solr.

Why: users migrating from those engines look for a way to attach a fixed score contribution to a sub-query without letting it affect matching. Naming the operator they already know makes labeled() discoverable from that starting point, instead of leaving them to infer the mapping from the Vespa-specific description of labels and itemRawScore.

Add a short note to the labeled() reference documentation pointing out
that it plays the same role as Lucene's ConstantScoreQuery, reached via
function_score in Elasticsearch/OpenSearch and via the ^= syntax in Solr.

Why: users migrating from those engines look for a way to attach a fixed
score contribution to a sub-query without letting it affect matching.
Naming the operator they already know makes labeled() discoverable from
that starting point, instead of leaving them to infer the mapping from
the Vespa-specific description of labels and itemRawScore.

@bratseth bratseth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@bratseth
bratseth merged commit 125829a into master Aug 25, 2026
2 checks passed
@bratseth
bratseth deleted the arnej/compare-with-lucene branch August 25, 2026 08:35

@kkraune kkraune left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants