def find_related(doc, max_nearest = 3, &block)
      carry =
        proximity_array_for_content(doc, &block).reject { |pair| pair[0].eql? doc }
      result = carry.collect { |x| x[0] }
      result[0..max_nearest - 1]
    end
def find_related(doc, max_nearest = 3, &block)
      carry =
        proximity_array_for_content(doc, &block).reject { |pair| pair[0].eql? doc }
      result = carry.collect { |x| x[0] }
      result[0..max_nearest - 1]
    end
This function takes content and finds other documents
 that are semantically "close", returning an array of documents sorted
 from most to least relavant.
 max_nearest specifies the number of documents to return. A value of
 0 means that it returns all the indexed documents, sorted by relavence.

 This is particularly useful for identifing clusters in your document space.
 For example you may want to identify several "What's Related" items for weblog
 articles, or find paragraphs that relate to each other in an essay.