Skip to content

Commit

Permalink
fix(search): change source query to const score query (TabbyML#2859)
Browse files Browse the repository at this point in the history
Signed-off-by: xxs-wallace <[email protected]>
  • Loading branch information
xxs-wallace authored Aug 13, 2024
1 parent dffc556 commit 84836ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/tabby-common/src/index/code/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ pub fn code_search_query(
(Occur::Must, chunk_tokens_query),
(
Occur::Must,
Box::new(schema.source_query(corpus::CODE, &query.git_url)),
Box::new(ConstScoreQuery::new(
Box::new(schema.source_query(corpus::CODE, &query.git_url)),
0.0,
)),
),
];

Expand Down

0 comments on commit 84836ca

Please sign in to comment.