longing vs yearning

longing

noun
  • An earnest and deep, not greatly passionate, but rather melancholic desire. 

  • The buying of a financial instrument with the expectation that its value will rise 

yearning

noun
  • A wistful or melancholy longing. 

How often have the words longing and yearning occurred in a corpus of books? (source: Google Ngram Viewer )