fix search cause undefined index,add more config comments,etc. good night