sitelink1 | |
---|---|
sitelink2 | |
sitelink3 | |
extra_vars4 | |
extra_vars5 | |
extra_vars6 |
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.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
15 |
Map 사용 예제
![]() | 황제낙엽 | 2010.10.17 | 104 |
14 | Digester/FAQ | 황제낙엽 | 2010.10.16 | 232 |
13 | RuleXML 작성법 | 황제낙엽 | 2009.01.20 | 177 |
12 | 유용한 링크 | 황제낙엽 | 2009.01.20 | 73 |
11 | Digester.peek(int n) 메서드의 고찰 | 황제낙엽 | 2008.08.26 | 88 |
10 |
Rule클래스의 작성 및 RuleXml 파일 작성 예제
![]() | 황제낙엽 | 2008.05.15 | 82 |
9 | Package org.apache.commons.digester Description - V1.8 (해석중) | 황제낙엽 | 2008.05.15 | 173 |
8 | Including programmatically-created rules: 의 고찰 | 황제낙엽 | 2008.05.14 | 80 |
7 | Digester 의 xmlrules 를 이용하여 Properties 파일 읽어들이기 | 황제낙엽 | 2008.05.14 | 98 |
6 |
Parsing and Processing Large XML Documents with Digester Rules (해석중)
![]() | 황제낙엽 | 2008.05.13 | 1567 |
5 | Package org.apache.commons.digester.xmlrules | 황제낙엽 | 2008.05.13 | 92 |
4 |
Digester가 제공하는 기본 Rule을 이용한 예제 프로젝트 분석
![]() | 황제낙엽 | 2008.05.13 | 174 |
3 | Digester 의 소개 및 기본적인 사용법 | 황제낙엽 | 2008.05.09 | 116 |
» | Parsing, indexing, and searching XML with Digester and Lucene | 황제낙엽 | 2008.05.07 | 534 |
1 | Digester란? | 황제낙엽 | 2008.05.07 | 136 |