File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -174,5 +174,5 @@ tag_list:
174
174
void
175
175
dfly::search::Parser::error (const location_type& l, const string& m)
176
176
{
177
- cerr << l << " : " << m << ' \n ' ;
177
+ driver-> Error (l, m) ;
178
178
}
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ void QueryDriver::ResetScanner() {
18
18
scanner_->SetParams (params_);
19
19
}
20
20
21
+ void QueryDriver::Error (const Parser::location_type& loc, std::string_view msg) {
22
+ LOG (ERROR) << " Parse error " << loc << " : " << msg;
23
+ }
24
+
21
25
} // namespace search
22
26
23
27
} // namespace dfly
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ class QueryDriver {
52
52
return scanner_.get ();
53
53
}
54
54
55
+ void Error (const Parser::location_type& loc, std::string_view msg);
56
+
55
57
public:
56
58
Parser::location_type location;
57
59
Original file line number Diff line number Diff line change @@ -488,6 +488,9 @@ void FieldIndices::CreateIndices(PMR_NS::memory_resource* mr) {
488
488
vector_index = make_unique<FlatVectorIndex>(vparams, mr);
489
489
490
490
indices_[field_ident] = std::move (vector_index);
491
+ LOG_FIRST_N (WARNING, 1 )
492
+ << " Created vector index '" << field_ident
493
+ << " ', but the computed score field '__vector_score' is not supported yet" ;
491
494
break ;
492
495
}
493
496
}
You can’t perform that action at this time.
0 commit comments