JiroSearch がリリースされたが、 手順の詳細など、 正式ページに出ていない情報をここに書き足していく予定ですので、よろしくお願いします。
環境によっては、 タイトルのようなエラーが出ることがある。
[webmaster]$ ant createIndex Unknown argument: -cp ant [options] [target [target2 [target3] ...]] Options:
これは ant のデフォルト設定が何かを邪魔しているのが原因らしい。 その場合は、 --noconfig というオプションを付けると実行できる。 例えば、こんな感じ。
ant --noconfig filecrawl
次のようになる。
[webmaster]$ ant --noconfig createIndex
Buildfile: build.xml
createIndex:
[java] 18:16:05,981 INFO org.springframework.core.CollectionFactory:76
- JDK 1.4+ collections available
[java] 18:16:06,003 INFO org.springframework.core.CollectionFactory:80
- Commons Collections 3.x available
[java] 18:16:06,136 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader:347
- Loading XML bean definitions from file [/usr/local/jiro/search/search/WEB-INF/applicationContext.xml]
[java] 18:16:07,475 INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader:347
- Loading XML bean definitions from file [/usr/local/jiro/search/search/WEB-INF/systemProperties.xml]
[java] 18:16:07,601 INFO org.springframework.context.support.AbstractRefreshableApplicationContext:100
- Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=7043360]:
org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [sessionBean,queries,highlightFilter,searchBean,fileCrawler,fileInfoUpdater,stubSearcher,analyzer,searcher,documentSearcher,htmlDocumentFactory,textDocumentFactory,indexUpdater,indexManager,xmlParser,propertyParser,propertyXmlWriter,fileInfoXmlWriter,systemProperties,facade,simpleTextParser,mappingFilter,tagMapper,titleParser,bodyParser,webPageParser]; root of BeanFactory hierarchy
[java] 18:16:07,625 INFO org.springframework.context.support.AbstractApplicationContext:322
- 26 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=7043360]
[java] 18:16:07,703 INFO org.springframework.context.support.AbstractApplicationContext:473
- Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1db7df8]
[java] 18:16:07,715 INFO org.springframework.context.support.AbstractApplicationContext:495
- Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster':
using default [org.springframework.context.event.SimpleApplicationEventMulticaster@79717e]
[java] 18:16:07,725 INFO org.springframework.beans.factory.support.DefaultListableBeanFactory:261
- Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [sessionBean,queries,highlightFilter,searchBean,fileCrawler,fileInfoUpdater,stubSearcher,analyzer,searcher,documentSearcher,htmlDocumentFactory,textDocumentFactory,indexUpdater,indexManager,xmlParser,propertyParser,propertyXmlWriter,fileInfoXmlWriter,systemProperties,facade,simpleTextParser,mappingFilter,tagMapper,titleParser,bodyParser,webPageParser]; root of BeanFactory hierarchy]
[java] 18:16:26,514 INFO jp.co.crm.util.xml.XmlWriterImpl:35
- write: filename = /usr/local/jiro/search/fileInfo.xml
BUILD SUCCESSFUL
Total time: 22 seconds