added search in recoding;changed the index structure by code systems