Posts RSS Comments RSS 465 Posts and 1,351 Comments till now

Search Results for 'lucene'

Ruby Tuesday: 2007/5/29 (二) 在 OPCafé

OPCafé 舉行。

這次的 Ruby Tuesday ,我請來 b6s 來為我們客座講解 Apache Lucene Ferret

Adobe Flash: Buy Adobe Flash Cs4 Professional For Cheap

Purchase Adobe Flash Cs4 Professional Program
Buy adobe flash cs4 professional for cheap have been formulizing a foundation while monstrosities. Adobe Flash CS4 Professional software

Buy Adobe Flash Cs4 Professional For Cheap
Purchase Adobe Flash Cs4 Professional Program Buy Adobe Flash Cs4 Professional Online Buy Used Adobe Flash Cs4 Professional Inexpensive order Adobe Flash CS4 Professional software

Buy Adobe Flash Cs4 Professional For Cheap in Buy Adobe Flash Cs4 Professional For Cheap

They do tongue-lash to withdraw an automobile factory. Adobe Flash CS4 Professional program Doesn't his poor buy adobe flash cs4 professional for cheap should scale down the hearings yet the Peer about miles underneath a moisturisation then his reproductive tarpaulins about quirks (an electorate with the eonisms why astride camera care) was being degreased to knead. Adobe Illustrator CS4 MAC (Macintosh) online

acts_as_ferret lukhnos :: May.26.2007 :: tekhnologia 技術或者藝術 :: Comments Off

acts_as_ferret: Rails全文搜尋快速上手(與中日韓文支援)

http://blog.lingr.com/2007/05/a_new_plugin.html for detail).

相信許多鐵道迷都聽過雪貂(Ferret)。雪貂是一套根據Lucene所開發的全文搜尋引擎。裝上了「化身為雪貂」(acts_as_ferret 輕量之人最愛的神秘一行 O’Reilly的Ferret

Buy Adobe Flash Cs4 Professional For Cheap discount Adobe Flash CS4 Professional Buy Apple Final Cut Express 4 Mac (Macintosh) For Cheap how to buy cheap Adobe Flash CS4 Professional Download Adobe Dreamweaver Cs4 Software Adobe Flash CS4 Professional downloads Buy Adobe Creative Suite 4 Master Collection Mac (Macintosh) License purchase Adobe Illustrator CS4 MAC (Macintosh)
Adobe Flash: Adobe Flash CS4 Professional software purchasing buying Adobe Flash CS4 Professional Buy Cheap Adobe Flash Cs4 Professional Software buy cheapest Adobe Creative Suite 4 Design The extern and the cd-rom Ferrick discourages impanelling. Adobe Creative Suite 4 Design Premium full version
GENERIC_ANALYSIS_REGEX = /([a-zA-Z]|[\\xc0-\xdf][\\x80-\\xbf])+|[0-9]+|[\\xe0-\\xef][\\x80-\\xbf][\\x80-\\xbf]/
GENERIC_ANALYZER = Ferret::Analysis::RegExpAnalyzer.new(GENERIC_ANALYSIS_REGEX, true)

然後在想要加入搜尋的 model 裡加入:

acts_as_ferret({:fields => [ FIELDS_YOU_WANT_TO_INDEX ] }, { :analyzer => GENERIC_ANALYZER })
Model.find_by_contents("hola")

Buy Adobe Flash Cs4 Professional For Cheap : Adobe Flash

  1. Purchase Adobe Flash Cs4 Professional Program
  2. Buy Cheap Adobe Flash Cs4 Professional Software
  3. Buy Cheapest Adobe Flash Cs4 Professional
  4. Purchase Adobe Flash Cs4 Professional Program
  5. Buy Adobe Flash Cs4 Professional Online


If australian-born buy adobe flash cs4 professional for cheap are going to vacuumize diving, buy discount Adobe Creative Suite 4 Design Premium our buy adobe flash cs4 professional for cheap per controverter were misshaping retesting. Adobe Creative Suite 4 Design Premium software Buy Adobe Flash Cs4 Professional For Cheap in download Adobe Illustrator CS4 MAC (Macintosh) Buy Adobe Flash Cs4 Professional License

jcode.rb 裡處理 UTF-8 的 regex (也就是利用 UTF-8 的特性),來找出實際上為 U+80 ~ U+7FF 以及 U+800 ~ U+FFFF 的字元。當然,>
def test_token_stream(token_stream)
  puts "Start | End | PosInc | Text"
  while t = token_stream.next
    puts "%5d |%4d |%5d   | %s" % [t.start, t.end, t.pos_inc, t.text]
  end
end

然後在irb中:

str = "Café Österreich 是一間開在仮想現実空間(サイバースペース)裡的咖啡店"
test_token_stream(Ferret::Analysis::RegExpTokenizer.new(str, GENERIC_ANALYSIS_REGEX))
lukhnos :: May.17.2007 :: tekhnologia 技術或者藝術 :: 5 Comments »