vttranlina commented on code in PR #2442:
URL: https://github.com/apache/james-project/pull/2442#discussion_r1808035091


##########
mailbox/lucene/src/main/java/org/apache/james/mailbox/lucene/search/LuceneMessageSearchIndex.java:
##########
@@ -1052,7 +1054,7 @@ private Query createTextQuery(SearchQuery.TextCriterion 
crit) throws Unsupported
             queryBuilder.add(createTermQuery(HEADERS_FIELD,value), 
BooleanClause.Occur.SHOULD);
             return queryBuilder.build();
         default:
-            throw new UnsupportedSearchException();
+            return new BooleanQuery.Builder().build(); // TODO: Implement

Review Comment:
   I'm stuck here.
   Because when input is `Scope.ATTACHMENTS`, it throw exception, and crash the 
JMAP flow.
   Then I temporary return empty BooleanQuery. 
   
   
   



-- 
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: notifications-unsubscr...@james.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to