I am trying to search by an extracted contentproperty when using the searchmanager.
Contentproperties are using custom SearchQuery implementations from the com.atlassian.confluence.plugins.contentproperty.search.query
But there does not seem to be a way of creating these.
I am looking for some service that exposes an interface like
SearchQuery getContentPropertyQuery(String extractorKey, String, extractorField, Object value);
c.a.c.plugins.contentproperty.search.query.ContentPropertySearchQueryFactory#create does something very similar but is a) not exposed b) needs argument that can’t be created as a user.
Searching via CQL is not really practical because it does not integrate with the other SearchManager features and it would require a lot of brittle string escaping logic.