def search(string, max_nearest = 3)
      return [] if needs_rebuild?

      carry = proximity_norms_for_content(string)
      unless carry.nil?
        result = carry.collect { |x| x[0] }
        result[0..max_nearest - 1]
      end
    end
def search(string, max_nearest = 3)
      return [] if needs_rebuild?

      carry = proximity_norms_for_content(string)
      unless carry.nil?
        result = carry.collect { |x| x[0] }
        result[0..max_nearest - 1]
      end
    end
This function allows for text-based search of your index. Unlike other functions
 like find_related and classify, search only takes short strings. It will also ignore
 factors like repeated words. It is best for short, google-like search terms.
 A search will first priortize lexical relationships, then semantic ones.

 While this may seem backwards compared to the other functions that LSI supports,
 it is actually the same algorithm, just applied on a smaller document.