implemented insert-by-query plan

does this work with bytesRef correctly?