Hi Rashi, Closest thing came to my mind is PathHierarchyTokenizerFactory http://wiki.apache.org/solr/HierarchicalFaceting
ahmet On Tuesday, December 31, 2013 3:16 PM, rashi gandhi <gandhirash...@gmail.com> wrote: Hi, I wanted to design an analyzer that can support location containment relationship For example Europe->France->Paris My requirement is like: when a user search for any country , then results must have the documents having that country , as well as the documents having states and cities which comes under that country. But, documents with country name must have high relevancy. And the same when a user search for state or city. It must obeys containment relationship up to 4 levels .i.e. Continent->Country->State->City Also, I have designed analyzer using synonym filter factory for the same, and its working as per expectation. But I wanted to know, is there any another way, apart from using synonym filter factory that can be used for the same. Is SOLR provide any tokenziers or filters for this? Please provide me some pointers to move ahead. Thanks in Advance