[visualize/editor] set the state based on the merged searchSource