Can't you return a new object with the new sig based on the setProjection params? Not fully related but we also had the ambition to parameterized the search API per specific backend. I.e. accept Lucene query vs elastic search queries as input. It was for the DSL specifically but could have consequences up to here. |