Exemple #1
0
  @Test
  public void testUpdate() throws IOException {
    String fieldName = null;
    String fieldValue = "习";

    Article article = new Article();
    article.setId(111);
    article.setTitle("中国好声音");
    article.setContent("中国最强音");
    article.setLink("www.mangguotv.com");
    luceneDao.updateIndex(fieldName, fieldValue, article);
  }