RegeX in Querybuilder | Community
Skip to main content
Level 2
January 9, 2018
Solved

RegeX in Querybuilder

  • January 9, 2018
  • 3 replies
  • 3514 views

Hello,

Can i give regular expression for path.

If i have to search in a path /content/geometrixx/*/products.

Any pointers on this would be helpful.

Thanks,

Meenakshi

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by abhishekagg19

As mentioned earlier, regex is not supported for path in the querybuilder.

You can do following things:

1. Specify multiple paths (if there are not too many folder entries):

group.1_path=/content/geometrixx/abc/products

group.2_path=/content/geometrixx/def/products

2. Query base path, example - /content/geometrixx/ and fine tune your index using lucene indexes. You can also filter the query result sets later using Java 8 stream APIs

3 replies

VeenaVikraman
Community Advisor
Community Advisor
January 9, 2018

I don't think you can give a regex for path . Please go through this documentation for more understanding on QueryBuilder Query Builder API .

edubey
Level 10
January 9, 2018

These are not supported for paths but there are wildcard characters that can be used with other predicates like * , %

abhishekagg19Adobe EmployeeAccepted solution
Adobe Employee
January 10, 2018

As mentioned earlier, regex is not supported for path in the querybuilder.

You can do following things:

1. Specify multiple paths (if there are not too many folder entries):

group.1_path=/content/geometrixx/abc/products

group.2_path=/content/geometrixx/def/products

2. Query base path, example - /content/geometrixx/ and fine tune your index using lucene indexes. You can also filter the query result sets later using Java 8 stream APIs