You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.5 KiB

  1. Extends the name search feature to use additional, more relaxed
  2. matching methods, and to allow searching into configurable additional
  3. record fields.
  4. The name search is the lookup feature to select a related record.
  5. For example, selecting a Customer on a new Sales order.
  6. For example, typing "john brown" doesn't match "John M. Brown".
  7. The relaxed search also looks up for records containing all the words,
  8. so "John M. Brown" would be a match.
  9. It also tolerates words in a different order, so searching
  10. for "brown john" also works.
  11. .. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image0.png
  12. Additionally, an Administrator can configure other fields to also lookup into.
  13. For example, Customers could be additionally searched by City or Phone number.
  14. .. figure:: https://raw.githubusercontent.com/OCA/server-tools/11.0/base_name_search_improved/images/image2.png
  15. How it works:
  16. Regular name search is performed, and the additional search logic is only
  17. triggered if not enough results are found.
  18. This way, no overhead is added on searches that would normally yield results.
  19. But if not enough results are found, then additional search methods are tried.
  20. The specific methods used are:
  21. - Try regular search on each of the additional fields
  22. - Try ordered word search on each of the search fields
  23. - Try unordered word search on each of the search fields
  24. All results found are presented in that order,
  25. hopefully presenting them in order of relevance.