Elasticsearch Backend Search - Elastic Search, Full Text Search and Fuzzy Search for Odoo
by Modvanta https://modvantaapps.tech/odoo-apps/backend-elasticsearch/$ 38.89

Elasticsearch Backend Search for Odoo 19
Typo tolerant full text search in the Odoo backend: index the models and fields you choose in Elasticsearch and search them from the normal search bar or one global search.
Written and supported by Modvanta - modvantaapps@gmail.com
Elasticsearch and OpenSearchFuzzy searchGlobal searchReal-time syncFallback searchOdoo 19
What it does
In plain language You pick a model, for example Contacts or Products, and the fields to index. A Full-text Search entry appears in the search bar of that model. Typos still find the record. Changes are sent to Elasticsearch right after they are saved, and the whole index is rebuilt every night. | Who it is for Companies with many contacts, products or orders where the normal search is slow or too strict. Teams that type names from memory and make typos. Admins who already run Elasticsearch, OpenSearch or Elastic Cloud. |
Key features
Every screenshot below was taken on Odoo 19 with this module installed.
FEATURE 1
Connection to your Elasticsearch server
Server URL with no authentication, username and password, or an Elasticsearch API key.
Test Connection shows the server version and cluster name
Index prefix so several databases can share a cluster
Real-time sync and database fallback switches

FEATURE 2
Index mapping
Choose the model, the fields and the records to index. Relational fields are indexed by name.
Boost per field so a match in the name ranks higher
Typo tolerance, all or any words, search as you type
Create and Index sends every record with the bulk API

FEATURE 3
Full-text Search in the search bar
Type in the normal search bar of an indexed model and pick Full-text Search.
It can be the default search, used when you just press Enter
Works in list and kanban views and in Search More dialogs

FEATURE 4
Typo tolerant results
A search for "azure intrior" still finds Azure Interior and its contacts.
Results go through normal Odoo access rights and record rules
Combine with the other filters and group by

FEATURE 5
Any model, for example products
Index products, sales orders, invoices, tickets or your own models.
"offce chair" finds Office Chair
Product category and other related fields included

FEATURE 6
Global search
One page, also opened from the search icon in the top bar, searches every indexed model at once.
Matching text highlighted under each result
Show all opens the list with the full-text filter applied

FEATURE 7
Group based search rules
Add a domain to full-text results for users of chosen groups; a rule without groups applies to everyone.
For example: the sales team only sees companies
Rules can be switched off without deleting them

FEATURE 8
Index status and sync queue
See every mapping with its document count, last sync and queued changes.
Changes are queued on create, write, archive and delete
Failed sends are retried and the error is kept
Nightly full reindex

How it works
| 1 | Connect Enter the server URL and, if needed, a username and password or an API key. Test the connection. |
| 2 | Map Create an index mapping: choose the model, the fields and an optional filter of records to index. |
| 3 | Index Click Create and Index. Every matching record is sent with the bulk API. |
| 4 | Search Type in the search bar of that model and choose Full-text Search, or open Global Search. |
Settings
| Server URL and authentication | None, username and password, or API key; SSL check and timeout. |
| Index prefix | Lets several databases share one cluster. |
| Real-time sync | Send changes after each save, or only with the scheduled action. |
| Fall back to database search | Keep searching when the server is down. |
| Per index | Typo tolerance, all or any words, search as you type, maximum results, search bar position, nightly reindex. |
FAQ
Do I need to install a Python library?
No. The module talks to the Elasticsearch REST API with the requests library that Odoo already uses.
Which servers work?
Elasticsearch 7 and 8, Elastic Cloud and OpenSearch, self hosted or managed.
Does it bypass access rights?
No. Elasticsearch only returns record ids; Odoo then applies the normal access rights and record rules, plus your search rules.
What if the server is down?
With the fallback on, the same search runs on the indexed fields in the database. Changes wait in the sync queue and are sent when the server is back.
Can I index related fields?
Yes. Many2one, many2many and one2many fields are indexed by the names of the linked records.
Compatibility and support
Odoo 19 Community and Enterprise. Needs an Elasticsearch or OpenSearch server you run or rent.
Questions, a demo or a custom change: modvantaapps@gmail.com
AUTHOR Modvanta | INCLUDED Connection, mappings, sync, global search |
Buy Now - $39Hire Us for Odoo Work
Written and supported by Modvanta - modvantaapps@gmail.com
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1143 |
| Technical Name |
mdv_backend_elasticsearch |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/backend-elasticsearch/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module