public void add(Object id, String text)
    {
        List<Term> termList = preprocess(text);
        add(id, termList);
    }
public void add ( Object id , String text ) { List < Term > termList = preprocess ( text ) ; add ( id , termList ) ; }
添加文档

@param id   文档id
@param text 文档内容