Can't find a solution on how to correctly write the url pattern (for basic website search) into search only on pages that have a specific subdirectory
E.g. I have the following web-pages:
example.com/*?/products/*?
?
Solved! Go to Solution.
Hi @svidnytskyy,
Welcome to Google Cloud Community!
You're on the right track with the idea of using wildcards, but the syntax for URL patterns in Vertex AI Search needs to be more specific. The * character isn’t intended for directory traversal in the way you’re using it.
To achieve the desired filtering, you may want to use the pattern example.com/*/products/*. The example.com part specifies the base domain, /*/ matches any directory segment, and /products/ targets the specific subdirectory. This pattern allows flexible filtering while focusing on the /products/ section.
You may refer to the following documentation, which covers the concept of the Enterprise Search platform, its use cases, flexibility, and customization options for different needs, as well as an introduction to the product:
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
Hi @svidnytskyy,
Welcome to Google Cloud Community!
You're on the right track with the idea of using wildcards, but the syntax for URL patterns in Vertex AI Search needs to be more specific. The * character isn’t intended for directory traversal in the way you’re using it.
To achieve the desired filtering, you may want to use the pattern example.com/*/products/*. The example.com part specifies the base domain, /*/ matches any directory segment, and /products/ targets the specific subdirectory. This pattern allows flexible filtering while focusing on the /products/ section.
You may refer to the following documentation, which covers the concept of the Enterprise Search platform, its use cases, flexibility, and customization options for different needs, as well as an introduction to the product:
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |