Skip to content

Local search: path-scoped suggestions, explicit path_prefix wins (#101) - #102

Closed
reekitconcept wants to merge 2 commits into
mainfrom
kid/local-scope-main
Closed

Local search: path-scoped suggestions, explicit path_prefix wins (#101)#102
reekitconcept wants to merge 2 commits into
mainfrom
kid/local-scope-main

Conversation

@reekitconcept

Copy link
Copy Markdown
Member

Fixes #101 (items 1 and 2). Port of the local-scoping fixes from the feature-ai-rag line (#100), without the AI-search parts:

  • @solr-suggest accepts an optional path_prefix and filters with path_parents, so livesearch suggestions honor a subtree scope like the search results do (integration test included; pathPrefix argument on the solrSearchSuggestions action, backward compatible).
  • searchPathPrefix(): an explicit path_prefix URL param wins over the getPathPrefix heuristic, which treats every single-segment path as a language root (/de, /en) and silently dropped the prefix for top-level subsites/workspaces.

Item 3 of #101 (multilingual handling neutralizing path_prefix on sites without plone.app.multilingual) remains open.

Not to be merged yet — queued for the release line together with #96 and #99.

Port of the local-scoping fixes from the feature-ai-rag line (#100),
without the AI-search parts:

- @solr-suggest accepts an optional path_prefix and filters with
  path_parents, so the livesearch suggestions honor a subtree scope
  like the search results do (integration test included; pathPrefix
  argument on the solrSearchSuggestions action).
- searchPathPrefix(): an explicit path_prefix URL param wins over the
  getPathPrefix heuristic, which treats every single-segment path as a
  language root and silently dropped the prefix for top-level subsites
  and workspaces.

The multilingual path handling neutralizing path_prefix on non-PAM
sites (#101 item 3) remains open.
@reekitconcept

Copy link
Copy Markdown
Member Author

Same hold as #100: local/global scoping stays out of the delivery for now. The issue #101 remains valid; the port will return after the next review round.

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.

Local search: suggestions ignore the path scope; top-level prefixes dropped; multilingual neutralizes the path filter

1 participant