linagora/james-project

[SearchSnippet] Add Lucene support for attachment search

vttranlina opened this issue · 3 comments

Currently, LuceneMessageSearchIndex does not support search by attachment text body.

Code : org.apache.james.mailbox.lucene.search.LuceneMessageSearchIndex#createTextQuery

This support will enhance SearchSnippet/get for body text searches using Lucene. Refer to: apache#2442 (comment)

We can refer to the MessageToOpenSearchJson class, which uses TextExtractor to extract text from attachments and index it.

jira ticket relate: JAMES-4082