{"id":124,"date":"2002-10-14T22:43:13","date_gmt":"2002-10-15T02:43:13","guid":{"rendered":"http:\/\/wordpress.cephas.net\/?p=124"},"modified":"2002-10-14T22:43:13","modified_gmt":"2002-10-15T02:43:13","slug":"shell-script-to-automate-the-lucene-search","status":"publish","type":"post","link":"https:\/\/cephas.net\/blog\/2002\/10\/14\/shell-script-to-automate-the-lucene-search\/","title":{"rendered":"shell script to automate the Lucene search"},"content":{"rendered":"<p>Wrote my first shell script to automate the Lucene search that handles searching for this blog.  Got the goods <a href=\"http:\/\/linuxcommand.org\/wss0010.html\">here<\/a> on shell scripting and stuff <a href=\"http:\/\/www.redhat.com\/support\/resources\/tips\/cron\/cron.html\">here<\/a> on Cron.  End result: a shell script that updates the Lucene index for this blog and pipes the output of the index script to an email:<\/p>\n<p>#!\/bin\/bash<br \/>\n# Script that indexes the appropriate directories<br \/>\n# using Lucence &amp; Java<br \/>\ncd \/usr\/hosts\/cephas.net\/wwwroot\/blog\/<br \/>\njava -cp \/usr\/hosts\/cephas.net\/wwwroot\/WEB-INF\/lib\/lucene-demos-1.2.jar:<br \/>\n\/usr\/hosts\/cephas.net\/wwwroot\/WEB-INF\/lib\/lucene-1.2.jar org.apache.lucene.demo.IndexHTML<br \/>\n-create -index \/usr\/hosts\/cephas.net\/wwwroot\/blog\/index\/ .. | mail -s &#8220;LUCENE[cephas.net\/blog]&#8221; aaron.s.johnson@gmail.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wrote my first shell script to automate the Lucene search that handles searching for this blog. Got the goods here on shell scripting and stuff here on Cron. End result: a shell script that updates the Lucene index for this blog and pipes the output of the index script to an email: #!\/bin\/bash # Script &hellip; <a href=\"https:\/\/cephas.net\/blog\/2002\/10\/14\/shell-script-to-automate-the-lucene-search\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">shell script to automate the Lucene search<\/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":[12],"tags":[],"_links":{"self":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/124"}],"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=124"}],"version-history":[{"count":0,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/posts\/124\/revisions"}],"wp:attachment":[{"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/categories?post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cephas.net\/blog\/wp-json\/wp\/v2\/tags?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}