sitelink1  
sitelink2  
sitelink3  
extra_vars4  
extra_vars5  
extra_vars6  

Marrying Digester and Lucene

Now that you know how to use each of these tools on their own, we can combine the two classes we've written. We'll use Digester to handle XML parsing, and Lucene to handle indexing. You can see the resulting DigesterMarriesLucene class in Listing 4. (Clicking Listing 4 causes a new browser window to open. Keep that window open so you can refer to Listing 4 while reading the following discussion.)

Let's look at some selections from this class in more detail. Just as we did in the AddressBookIndexer class, we need to open the Lucene index for writing using IndexWriter; we do so here in Listing 5. We pass in the path to the index directory, the Analyzer to process all data being indexed, and a createFlag that is set to true, so that the index is opened in the append mode.

번호 제목 글쓴이 날짜 조회 수
38 Digester/FAQ 황제낙엽 2010.10.16 232
37 RuleXML 작성법 황제낙엽 2009.01.20 177
36 유용한 링크 황제낙엽 2009.01.20 73
35 Digester.peek(int n) 메서드의 고찰 황제낙엽 2008.08.26 88
34 Rule클래스의 작성 및 RuleXml 파일 작성 예제 file 황제낙엽 2008.05.15 82
33 Package org.apache.commons.digester Description - V1.8 (해석중) 황제낙엽 2008.05.15 173
32 Including programmatically-created rules: 의 고찰 황제낙엽 2008.05.14 80
31 Digester 의 xmlrules 를 이용하여 Properties 파일 읽어들이기 황제낙엽 2008.05.14 98
30 Parsing and Processing Large XML Documents with Digester Rules (해석중) file 황제낙엽 2008.05.13 1567
29 Package org.apache.commons.digester.xmlrules 황제낙엽 2008.05.13 92
28 Digester가 제공하는 기본 Rule을 이용한 예제 프로젝트 분석 file 황제낙엽 2008.05.13 174
27 Digester 의 소개 및 기본적인 사용법 황제낙엽 2008.05.09 116
» Parsing, indexing, and searching XML with Digester and Lucene 황제낙엽 2008.05.07 534
25 Digester란? 황제낙엽 2008.05.07 136
24 접속 클라이언트의 아이피별로 로그 화일 기록하기 file 황제낙엽 2009.06.01 240
23 영문 메뉴얼 (PDF) file 황제낙엽 2009.05.29 65
22 사용자 정의 Appender 정의하여 Log4j 확장하기 황제낙엽 2009.05.28 286
21 POI - HSSF 예제 프로젝트 file 황제낙엽 2008.05.16 94
20 POI 셀 스타일 설정을 위한 예제 소스 file 황제낙엽 2008.05.16 1458
19 POI HSSF 기능 가이드 -- 퀵·가이드 (한글) 황제낙엽 2008.05.16 432