I am having only "Europe" being indexed along with some related data,but when someone searches using the word "Germany" although there is nothing specifically indexed for Germany but logically I can provide results under Europe than providing nothing at all,is there any way to do this? Does lunene have any supporting libraries which can do this?
I see two possibilities: either build something like the SynonymAnalyzer described in chapter 4.5 of Lucene in Action 2nd ed., or check out the org.apache.lucene.analysis.synonym.WordnetSynonymParser class that comes with Lucene. (If you were going to object that you don't have the book, go buy it now - anybody doing serious work with Lucene needs it. Seriously.)