Fuzzy Search
base_search_fuzzy · OCA/server-tools
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.34 MB
Module directory on disk
Code analysis
0 migration notes
1 model
3 views
0 HTTP endpoints
Description
This addon provides the ability to create GIN or GiST indexes of char and text fields and also to use the search operator % in search domains. Currently this module doesn't change the backend search or anything else. It provides only the possibility to perform the fuzzy search for external addons.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
trgm_index_view_form |
trgm.index.view.form | trgm.index | form | New |
trgm_index_view_tree |
trgm.index.view.tree | trgm.index | list | New |
view_res_partner_filter |
res.partner | Inherits base.view_res_partner_filter |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (4)
-
field_idMany2one → ir.model.fieldscomodel_name='ir.model.fields'help='You can either select a field of type "text" or "char".'ondelete='set default'required=True -
index_nameCharhelp='The index name is automatically generated like fieldname_indextype_idx. If the index already exists and the index is located in the same table then this index is reused. If the index is located in another table then a number is added at the end of the index name.'readonly=True -
index_typeSelectiondefault='gin'help='Cite from PostgreSQL documentation: GIN indexes are the preferred text search index type.See: https://www.postgresql.org/docs/current/textsearch-indexes.html'ondelete={'gin': 'set default', 'gist': 'set default'}required=Trueselection=[('gin', 'GIN'), ('gist', 'GiST')] -
langSelectionhelp='You will need one index per installed language.'string='Language' args: _lang_get
-
create(self, vals_list)@api.model_create_multi -
create_index(self) -
get_not_used_index(self, index_name, table_name, inc=1) -
index_exists(self, model_name, field_name)@api.model -
unlink(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…