Modifying the field definition to
<fieldType name="text_path" class="solr.TextField" stored="true" indexed="true" positionIncrementGap="100"> <analyzer type="index"> <tokenizer class="solr.PathHierarchyTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory" /> </analyzer> <analyzer type="query"> <tokenizer class="solr.KeywordTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory" /> </analyzer> </fieldType> solves the purpose . got it from the link http://stackoverflow.com/questions/6920506/solr-pathhierarchytokenizerfactory-facet-query -- View this message in context: http://lucene.472066.n3.nabble.com/PathHierarchyTokenizerFactory-behavior-tp3993839p3994154.html Sent from the Solr - User mailing list archive at Nabble.com.