+
Skip to content

Conversation

lef-adhoc
Copy link
Contributor

In v18 _search_smart_search was delegating to name_search. This introduces an artificial limit (100 records) before other domain filters are applied, leading to incomplete results.

This PR restores the original behavior from v16:

  • Build the domain directly in _search_smart_search.

This makes smart search consistent again with standard search and avoids missing records.

…t_search

In v18 `_search_smart_search` was delegating to `name_search`.
This introduces an artificial limit (100 records) before other
domain filters are applied, leading to incomplete results.

This PR restores the original behavior from v16:
- Build the domain directly in `_search_smart_search`.

This makes smart search consistent again with standard search
and avoids missing records.
@lef-adhoc lef-adhoc changed the title [FIX] base_name_search_improved: restore v16 behavior in _search_smart_search [18.0][FIX] base_name_search_improved: restore v16 behavior in _search_smart_search Aug 29, 2025
Copy link

@baf-adhoc baf-adhoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Functional review ok

@lef-adhoc
Copy link
Contributor Author

@dreispt @kittiu @Rad0van Hi, could you check this?

@lef-adhoc
Copy link
Contributor Author

Hi @pedrobaeza, do you happen to know who might see this?

return expression.OR([additional_domain, domain])

return domain
domain = (domain and ["&"] + domain or domain) + word_domain
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this work?

Suggested change
domain = (domain and ["&"] + domain or domain) + word_domain
domain = expression.AND(domain, word_domain)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载