RegeX in Querybuilder | Community
Skip to main content
Level 2
Jan 9, 2018 12:21 PM UTC
Solved

RegeX in Querybuilder

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.
abhishekagg19Accepted solution
Employee
Jan 10, 2018 9:02 AM UTC

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

abhishekagg19Accepted solution
Employee
Jan 10, 2018 9:02 AM UTC

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

Translate
edubey
Level 10
Jan 9, 2018 3:21 PM UTC

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

Translate
VeenaVikraman
New Participant
Jan 9, 2018 1:58 PM UTC

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

Translate