Example #1
0
  public ArrayList<String> match(String token) {
    ArrayList<String> res = new ArrayList<String>();
    if (index == null) {
      return res;
    }

    for (SearchIndex si : index) {
      if (si.match(token, caseSensitive)) {
        res.add(si.getText());
      }
    }
    return res;
  }