implemented insert-by-query plan

same as above - does this work with bytesRef?