No, the field names don't support wildcards. Ordering needs to be deterministic; given the same sort order and the same set of documents, the results should sort the same. Adding wildcards to sort fields makes it unclear what order the sorting is applied.
E.g. a_createdon and 1_createdon would both match, but which order should they be applied? Even if the order of operations is documented, it's not clear to someone reading the query without checking the documentation.
Why do you want wildcards for field names? Do you have a very large number of fields you are trying to sort by?
Our documents structure is fixed where the most popular sort key is by the createdon field. Now this field appear in different document categories like . i.e. order > details ; shipping > tracking etc
So, right now the calling app is required to send sort key as details.createdon or shippingtracking.createdon vs *createdon.
So was curious to see if sort filter also support wild card in field names the way the query filter supports
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.