Lucene does not understand the word "India", therefore the facets that are actually indexed are:
Doc1: Asia + Asia/India Doc2: India + India/Gujarat When you ask for top children, you will get Asia + India, both with a count of 1. Shai On Thu, Jan 8, 2015 at 1:48 PM, Jigar Shah <jigaronl...@gmail.com> wrote: > Very simple question, on facet > > Index has 2 documents as follows: > > Doc1 > Indexed facet path: Asia/India > Doc2 > Indexed facet path: India/Gujarat > > > Now while faceted search > > facets.getTopChildren() > > Will it return 1(Asia) result or 2(Asia, India) ? > > So basically will it join values and return hierarchy ? > > Thanks, >