airborne12 commented on code in PR #69790:
URL: https://github.com/apache/doris/pull/69790#discussion_r4424043453


##########
be/src/storage/index/inverted/reader/predicate_collector.cpp:
##########
@@ -365,15 +383,14 @@ Status MatchPredicateCollector::collect(RuntimeState* 
state, const TabletSchemaS
     const auto* index_meta = DORIS_TRY(
             select_index_meta(candidates.index_metas, candidates.field_type, 
query_type,
                               analyzer_ctx->analyzer_key, 
analyzer_ctx->legacy_analyzer_key));
-    if 
(!inverted_index::InvertedIndexAnalyzer::should_analyzer(index_meta->properties())
 ||
-        !IndexReaderHelper::is_need_similarity_score(expr->op(), index_meta)) {
+    if (!IndexReaderHelper::is_need_similarity_score(expr->op(), index_meta)) {

Review Comment:
   Addressed separately in #69901: MATCH now keeps BM25 statistics per index, 
so clauses on different indexes of one column score with their own statistics 
instead of being rejected. Once it merges, a keyword plus an analyzed index on 
one column works here too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to