Lucene Solr faced Search
I want to use lucene facet search. I want to use my database. And my aim is to search any news and show the counts of news for each years related to word searched.
Ex: searching "president" word in news, result of searching should give me answers according to years.

Search: "president" 

Result should give counts of news for each years : 
 2012 (540 news)   ---> this means that I searched word of "president" and there are 540 news related to "president" word in my database.
 2011 (200  news)
 2010 (188  news)
 2009 (...  news)
 2008 (...  news)
   .
   .

How can I do this searching, building code ?


      
Lucene Solr faced Search
===

I want to use lucene facet search. I want to use my database. And my aim is to search any news and show the counts of news for each years related to word searched.
Ex: searching "president" word in news, result of searching should give me answers according to years.

Search: "president" 

Result should give counts of news for each years : 
 2012 (540 news)   ---> this means that I searched word of "president" and there are 540 news related to "president" word in my database.
 2011 (200  news)
 2010 (188  news)
 2009 (...  news)
 2008 (...  news)
   .
   .

How can I do this searching, building code ?


      