{"id":8180,"date":"2014-06-21T05:06:10","date_gmt":"2014-06-20T19:06:10","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=8180"},"modified":"2014-06-21T05:06:10","modified_gmt":"2014-06-20T19:06:10","slug":"local-webserver-search-engine-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/local-webserver-search-engine-primer-tutorial\/","title":{"rendered":"Local Webserver Search Engine Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Java\/Indri\/Indri_Primer.jpg\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Local Webserver Search Engine Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/Java\/Indri\/Indri_Primer.jpg\" title=\"Local Webserver Search Engine Primer Tutorial\"  \/><\/a><p class=\"wp-caption-text\">Local Webserver Search Engine Primer Tutorial<\/p><\/div>\n<p>This topic got my immediate interest when reading a chapter (16) in <i>Linux<\/i> by Steve Oualline and Eric Foster-Johnson called &#8220;Setting Up a Search Engine&#8221;.  As a creator of web content, who wouldn&#8217;t want to know something about this subject?   <i><b>Well, Daffy Duck for one!<\/b><\/i>  Yeah &#8230; well &#8230; as a creator of web content, and excluding <i><a target=_blank title='Daffy Duck' href='http:\/\/www.youtube.com\/watch?v=CVspg-K-rTw'>Daffy Duck<\/a><\/i>, who wouldn&#8217;t want to know something about this subject?   <i><b>How about Elmer Fudd?!<\/b><\/i>  Yeah &#8230; okay &#8230; well &#8230; point taken &#8230; as a creator of web content, and excluding <i>Daffy Duck<\/i> and <i><a target=_blank title='Elmer Fudd' href='http:\/\/www.youtube.com\/watch?v=SSR35Lhla4A'>Elmer Fudd<\/a><\/i>, who wouldn&#8217;t want to know something about this subject &#8230; and before you say <i>Bugs Bunny<\/i> let me just say that carrots result in curiosity regarding webservers, and search engines in particular?  <i><b>How &#8217;bout <a target=_blank title='Bugs Bunny' href='http:\/\/www.youtube.com\/watch?v=1G8Xlx7dfT8'>Bugs Bunny<\/a>?!<\/b><\/i>   Gghhheeeeese!<\/p>\n<p>Anyway that got me into <i>htdig<\/i> (regarding local search engine, the emphasis being <i>local<\/i> &#8230; we&#8217;re not claiming this as a  <a target=_blank title='Bing search engine' href='http:\/\/www.google.com'>Google<\/a> or  <a target=_blank title='Yahoo search engine' href='http:\/\/www.yahoo.com'>Yahoo<\/a> or <a target=_blank title='Bing search engine' href='http:\/\/www.bing.com'>Bing<\/a> &#8230; but this can be good for a <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Intranet' title='Intranet information from Wikipedia'>intranet<\/a> scenario, just as one example of its use) which I&#8217;ve no doubt has worked well for lots of people but the Xcode environments now make it harder to work &#8230; tried it, but it ended in a dead end, so did some further research, after getting my dog to lick my wounds &#8230; she&#8217;s awfully good at that &#8230; and came up with a website mentioned in the blurb below that led me to an Open Source product called <i><a target=_blank href='http:\/\/www.cs.cmu.edu\/~lemur\/3.1\/IndriQueryLanguage.html' title='Indri'>Indri<\/a><\/i>, which appears excellent.   Have a look below at what (ended up) working on a local Apache MAMP webserver with Mac  OS X 10.9 Mavericks (at the Terminal application&#8217;s Bash command line environment), and we&#8217;ll probably revisit this area of webserver web work (www &#8230; chortle, chortle) &#8230; perhaps to link it to a URL &#8230; would highly recommend reading up on it at some\/all of the links below.<\/p>\n<p><iframe src='http:\/\/www.rjmprogramming.com.au\/Java\/Indri\/indri.html' width='100%' height=770 style=\"background-color:yellow;\"><\/iframe><\/p>\n<p>Here is an example of an XML query file that works with Indri you could call <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Java\/Indri\/queries.xml_GETME\" title=\"queries.xml\">queries.xml<\/a> &#8230; and thanks for stopping by today&#8217;s tutorial <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/Java\/Indri\/Indri_Primer.jpg\" title='Click picture'>posting<\/a>.   Will leave you with a link to <a target=_blank href='http:\/\/www.myelin.co.nz\/post\/2002\/12\/18\/htdig_on_freebsd.html' title='htdig link'>htdig<\/a> thoughts, because it might work for you, and if it had worked for me, would be now showing you the results of what would happen in MAMP if we&#8217;d gone to URL http:\/\/localhost:8888\/search.html<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d8180' onclick='var dv=document.getElementById(\"d8180\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?tag=webserver\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d8180' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This topic got my immediate interest when reading a chapter (16) in Linux by Steve Oualline and Eric Foster-Johnson called &#8220;Setting Up a Search Engine&#8221;. As a creator of web content, who wouldn&#8217;t want to know something about this subject? &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/local-webserver-search-engine-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,29,33,37],"tags":[85,132,234,249,575,607,612,644,707,728,732,744,758,877,1111,1319,1400,1419,1480],"class_list":["post-8180","post","type-post","status-publish","format-standard","hentry","category-elearning","category-operating-system","category-software","category-tutorials","tag-apache","tag-bash","tag-command-line","tag-configuration","tag-htdig","tag-indri","tag-installation","tag-java","tag-linux","tag-mac-os-x-10-9-1","tag-mac-terminal","tag-mamp","tag-mavericks","tag-open-source","tag-search-engine","tag-tutorial","tag-web","tag-webserver","tag-xml"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/8180"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=8180"}],"version-history":[{"count":0,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/8180\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=8180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=8180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=8180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}