Log in

No account? Create an account


Lyrics Search Engine 歌詞検索エンジン

Lyrics Search Engine 歌詞検索エンジン

Previous Entry Share Flag Next Entry
天気: 晴 行事: 赤来中


Journal for 2005-6-21 Tue..
Weather: Sunny   Plan: Akagi JHS

Today was the same as always. In the 9th grade elective English class, Ms. Mishima introduced the Jeopardy Game to the kids. They all really loved it. In the 7th grade elective English class we played Telephone. Today was ful of fun classes. In the time left over I implemented a search engine for English and Japanese for my Lyrics Worksheet creator!

Today's Kanji
Meaning (意味): think

Chinese Reading (音読み):
Reading Romaji 
Japanese Reading (訓読み):
Reading Romaji 
Vocabulary (単語):
Word Reading Romaji Translation 
考えるかんがえるkangaeruto think
考証こうしょうkoushou(historical) investigation

Trevor Lalish-Menagh
  • How'd you code the search engine? I used to to think of just using exact match searching or perhaps partial matching...this past quarter we started using Lucene. Lucene is a Apache affiliated monster that is a full search engine (i.e. documents, indexes, inverse-document files,etc..) written in Java.

    I'm interested in your AJAX stuff, and see that it's really picking up.
    • The lyrics are stored flat, much to my embarrassment. Each lyrics file is an XML file and they are stored in a directory called data. Since I am using UNIX I knew one of the best ways to search files is using grep, so all it is is a simple grep on the files for the data and then some ksh code to format the table.

      AJAX sounds hard, but it is really quite easy. I write all my back engine stuff in Perl (or ksh if it the operation is less complicated), and then the webpage is just a template with the XMLHTTPRequest javascript code attached to a control (in my case a pop-down menu). When a control is selected the JS is called, the callback function is set, and when the Perl script is finished the callback function is run.

      If you have ever done application programming the concept of callback fuctions should make sense. This approach is finally giving the power of application programming to web apps.
Powered by LiveJournal.com