semi-clone of Search API restful helper class.
Start of new PT Rules helper classes.