{"id":52,"date":"2002-08-20T23:28:45","date_gmt":"2002-08-21T03:28:45","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=52"},"modified":"2002-08-20T23:28:45","modified_gmt":"2002-08-21T03:28:45","slug":"lucene-search-up-and-running","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2002\/08\/20\/lucene-search-up-and-running\/","title":{"rendered":"lucene search up and running"},"content":{"rendered":"<p>Inspired by <a href=\"http:\/\/radio.weblogs.com\/0101679\/stories\/2002\/08\/13\/luceneSearchFromBlosxom.html\">Sam Ruby<\/a>, I got Lucene to search this site.. My search sample size is pretty small, but 10 milliseconds for a <a href=\"\/blog\/search.jsp?query=jabber&amp;maxresults=10&amp;submit=Search+%3E%3E\">search<\/a> on any site is pretty fast.  How?<\/p>\n<p>First, download the Lucene <a href=\"http:\/\/jakarta.apache.org\/site\/binindex.html\">binaries<\/a>.<\/p>\n<p>Second, throw lucene-1.2.jar &amp; lucene-demos-1.2.jar into your classpath or into your $siteroot\/WEB-INF\/lib folder.<\/p>\n<p>Run a quick index of the html files you want indexed:<\/p>\n<p># java -classpath #InsertPathToAboveMentionedJars org.apache.lucene.demo.IndexHTML -create #InsertPathToFilesYouWantIndexed<\/p>\n<p>And then you can run a query using the sample jsp provided w\/ the Lucene download by changing the path to the index you created.  Pretty simple!<\/p>\n<p>Maybe someday I&#8217;ll polish up the scripts and add it to Moveable Type&#8217;s External Resources <a href=\"http:\/\/www.movabletype.org\/resources.shtml\">page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inspired by Sam Ruby, I got Lucene to search this site.. My search sample size is pretty small, but 10 milliseconds for a search on any site is pretty fast. How? First, download the Lucene binaries. Second, throw lucene-1.2.jar &amp; lucene-demos-1.2.jar into your classpath or into your $siteroot\/WEB-INF\/lib folder. Run a quick index of the &hellip; <a href=\"https:\/\/cephas.net\/blog\/2002\/08\/20\/lucene-search-up-and-running\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">lucene search up and running<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/52"}],"collection":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}