Building Mini-Google in Ruby @igrigorik #railsconfhttp://bit.ly/railsconf-pagerank Naïve: Term Frequency index.search_each( content: the brown cow ) do |id, score| puts Score: #{score}, #{index[id][:title]} end > Score: 0.827, 3 > Score: 0.523, 5 > Score: 0.125, 4 Relevance.
{}