Metadata-Version: 2.1
Name: odoo-addon-mail_message_search
Version: 19.0.1.0.0.3
Requires-Dist: odoo==19.0.*
Summary: Mail Message Search
Home-page: https://github.com/OCA/mail
License: AGPL-3
Author: Quartile, Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

===================
Mail Message Search
===================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:b98e43369f06d4c5ba28dc6013c435ab8607ad45cdc97ed829d1b968eaee1466
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github
    :target: https://github.com/OCA/mail/tree/19.0/mail_message_search
    :alt: OCA/mail
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/mail-19-0/mail-19-0-mail_message_search
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/mail&target_branch=19.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module enables searching for messages across any record that uses
the chatter, based on their associated conversation threads. It
dynamically adds a Message Search field to the search view of any model
that inherits from ``mail.thread``.

The Message Search field performs a smart, per-word search across a
message’s subject, body, sender, and reply-to fields.

**Table of contents**

.. contents::
   :local:

Use Cases / Context
===================

This module offers an alternative to ``base_search_mail_content``,
designed to better support languages that do not separate words with
spaces (e.g., Chinese, Japanese, Korean, Thai).

The original module relies on PostgreSQL's ``pg_trgm``, which requires
three-character tokens and a similarity score above the default
cutoff—making it ineffective for languages without space-separated
words.

This module uses direct keyword matching across key fields in
``mail.message``, offering more reliable results in multilingual
environments.

Configuration
=============

If your database is very large, you can limit how many messages a search
returns to prevent crashes.

- Go to Settings ▸ Technical ▸ System Parameters.
- Add a new parameter:

  - Key: mail_message_search.message_limit
  - Value: your desired limit (e.g., 5000).

Usage
=====

Go to any model that contains a chatter (e.g. Contacts, ...). Search for
content in field 'Message Search'.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/mail/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/mail/issues/new?body=module:%20mail_message_search%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Quartile

Contributors
------------

- `Quartile <https://www.quartile.co>`__:

  - Aung Ko Ko Lin
  - Yoshi Tashiro

Other credits
-------------

The migration of this module from 18.0 to 19.0 was financially supported
by Agent ERP GmbH

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-yostashiro| image:: https://github.com/yostashiro.png?size=40px
    :target: https://github.com/yostashiro
    :alt: yostashiro
.. |maintainer-aungkokolin1997| image:: https://github.com/aungkokolin1997.png?size=40px
    :target: https://github.com/aungkokolin1997
    :alt: aungkokolin1997

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-yostashiro| |maintainer-aungkokolin1997| 

This module is part of the `OCA/mail <https://github.com/OCA/mail/tree/19.0/mail_message_search>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
