You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Apache Wiki <wi...@apache.org> on 2005/05/14 22:55:42 UTC

[Lenya Wiki] Update of "WyonaLucene" by GregorRothfuss

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.

The following page has been changed by GregorRothfuss:
http://wiki.apache.org/lenya/WyonaLucene

The comment on the change is:
obsolete

------------------------------------------------------------------------------
+ deleted
- <section><title>Index</title>
- <p>...</p>
- </section>
- <section><title>Search</title>
- <section><title>Standard</title>
- <source><![CDATA[org.apache.lucene.search.Searchersearcher=neworg.apache.lucene.search.!IndexSearcher("index");org.apache.lucene.analysis.Analyzeranalyzer=neworg.apache.lucene.analysis.standard.!StandardAnalyzer();org.apache.lucene.search.Queryquery=!QueryParser.parse(query_string,"contents",analyzer);org.apache.lucene.search.Hitshits=searcher.search(query);]]></source>
- </section>
  
- <section><title>Cocoon</title>
- <source><![CDATA[!LuceneCocoonSearchersearcher=neworg.apache.cocoon.components.search.!SimpleLuceneCocoonSearcherImpl();searcher.setDirectory("index");searcher.setAnalyzer(neworg.apache.lucene.analysis.standard.!StandardAnalyzer());org.apache.lucene.search.Hitshits=searcher.search(query_string,LuceneXMLIndexer.BODY_FIELD);]]></source>
- </section>
- </section>
- 
- <section>
- <title>Usage</title>
- <p>
- How to crawl and index ...
- </p>
- 
- <section>
- <title>ANT</title>
- <p>
- <code>ant -f src/webapp/lenya/bin/crawl_and_index.xml -projecthelp</code>
- </p>
- <p>
- <code>ant -f src/webapp/lenya/bin/crawl_and_index.xml -Dcrawler.xconf=crawler.xconf crawl</code>
- </p>
- <p>
- <code>ant -f src/webapp/lenya/bin/crawl_and_index.xml -Dlucene.xconf=lucene.xconf index</code>
- </p>
- </section>
- 
- <section><title>Crawling HTDOCS</title>
- <p>
- <code>java -cp build/lenya/classes org.apache.lenya.search.crawler.IterativeHTMLCrawler</code>
- </p>
- </section>
- 
- 
- <section><title>Indexing HTML within the Filesystem</title>
- <p>
- <code>java -cp lucene-1.2-rc2.jar:classes org.apache.lenya.lucene.IndexHTML -create -index lucene-index-oscom-matrix /usr/local/apache/htdocs_oscom</code>
- </p>
- </section>
- 
- <section><title>Indexing Files within the Filesystem</title>
- <p>
- <code>java -cp lucene-1.2-rc2.jar:classes org.apache.lenya.lucene.!IndexFiles /usr/local/apache/htdocs_oscom lucene-index-oscom-matrix</code>
- </p>
- </section>
- 
- <section><title>Indexing HTML via HTTP (Crawling)</title>
- <ol>
-   <li>LARM</li>
-   <li>i2a.!WebSearch (Configuration: WEB-INF/conf/websearch.xml: seed, scope, indexURI)</li>
- </ol>
- </section>
- </section>
- 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org