I need to get in my raw Nexus v3 repository every files that contains a '-' character
Ive found how to use storageFacet to make some queries but I cant find how to use a regex with it:
def repo = repository.repositoryManager.get("myRepo")
StorageFacet storageFacet = repo.facet(StorageFacet)
def tx = storageFacet.txSupplier().get()
tx.begin()
Iterable<Component> components =
tx.findComponents(Query.builder().where('name = ').param('/^.*\b([-]+)\b.*$').build(), [repo])
tx.commit()
tx.close()
It works when I put a string name instead of param('/^.\b([-]+)\b.$') .
If you have any documentation about how this query system works I will be more than happy to read it.