Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add option to filter search results by url/pathname #231

Conversation

herbertnikolajewskidci
Copy link

  • filterByPathName: false

    • This option allows restricting search context to the current URL.
  • subPath: -1

    • This option only works if filterByPathName is set to true. It allows further filtering of the search context. Example: Suppose this is our endpoint: "/help/page1/subpage1/topic". If I set subPath: 2, then the search context will be limited to everything that can be found under help/page1/. Anything that's under /help/page3 or similar will be filtered out. subPath: 3 => then only help/page1/subpage1/ not help/page1/subpage2/*, etc. The default value is set to -1, which always allows searching the current page only as search context.

@herbertnikolajewskidci herbertnikolajewskidci changed the title feat: Add option to filter search results by url/pathname. feat: Add option to filter search results by url/pathname Dec 9, 2024
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.

1 participant