add remove indexPattern flag, remove the index pattern when set
fix getter/setter issue in searchSource