- Newest
- Most votes
- Most comments
To ensure all pages under a specific parent page are indexed in Amazon Bedrock when using the Confluence data source, you need to use a carefully crafted regular expression pattern. Here are some best practices and examples:
-
Use a pattern that matches the parent page title and all its child pages: For example, if your parent page is titled "Project X Documentation", you could use: ^Project X Documentation.*$
This pattern will match the parent page and all pages that start with "Project X Documentation".
-
If you want to be more specific and ensure you're only getting child pages, you can use: ^Project X Documentation/.+$
This pattern will match any page that starts with "Project X Documentation/" followed by at least one character, effectively capturing all child pages.
-
Remember that Confluence often uses a hierarchical structure in page titles. You might see something like: "Parent Page / Child Page / Grandchild Page" In this case, you could use: ^Parent Page(/.*)?$
This will match "Parent Page" and any pages that start with "Parent Page/" followed by any characters.
-
If you want to include pages from multiple parent pages, you can use the OR operator (|): ^(Project X|Project Y).*$
This will include all pages under both "Project X" and "Project Y".
-
Be cautious with your patterns to avoid unintended matches. For instance, if you have similarly named pages in different spaces, you might want to include the space key in your pattern: ^SPACEKEYXYZ:Project X.*$
It's important to note that the regular expression patterns are case-sensitive. Make sure your patterns match the exact casing of your page titles.
Also, remember that if you're using both inclusion and exclusion patterns, the exclusion patterns take precedence. So, if a page matches both an inclusion and an exclusion pattern, it will be excluded.
Lastly, after applying these patterns, it's crucial to verify the results by checking the indexed content. You may need to adjust your patterns based on the specific structure and naming conventions of your Confluence instance.
If you're still experiencing issues with pages not being indexed as expected, you should double-check the permissions settings in Confluence to ensure that the Bedrock connector has access to all the pages you want to index.
Sources
Connect to Confluence for your knowledge base - Amazon Bedrock
Specify the search range in the Box from Kendra when using the Amazon Kendra Box Connector | AWS re:Post
answered a year ago
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
