Files
odoo_source/addons/website/tests/__init__.py
T
Benoit Socias c6ba756e4b [IMP] core, website: use fuzzy matching in web-based search
Before this commit searched terms were the ones entered by the end-user.

After this commit if the searched term is not found then the search is
performed on a resembling term.
The similarity is obtained from a Levenshtein distance combined with
ratios of common and different letters.
By default the dictionary against which the search term is matched is
based on the content of the search fields containing a word that starts
with the first letter of the search term.
If the `pg_trgm` Postgresql extension is installed the dictionary is
built from matches using the `<%%` operator (similar to the
`word_similarity` function).
Several approaches were benchmarked during development, those results
are available through the task record.

task-2379555
https://github.com/odoo/odoo/pull/65871

Part-of: odoo/odoo#65871
2021-09-03 06:59:33 +00:00

26 lines
814 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import test_attachment
from . import test_base_url
from . import test_controllers
from . import test_converter
from . import test_crawl
from . import test_disable_unused_snippets_assets
from . import test_fuzzy
from . import test_get_current_website
from . import test_lang_url
from . import test_menu
from . import test_page
from . import test_performance
from . import test_qweb
from . import test_res_users
from . import test_snippets
from . import test_theme
from . import test_ui
from . import test_views
from . import test_views_inherit_module_update
from . import test_website_favicon
from . import test_website_form_editor
from . import test_website_reset_password
from . import test_website_visitor