lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shai Erera <ser...@gmail.com>
Subject Re: Faceted Search Hierarchy
Date Thu, 08 Jan 2015 11:56:35 GMT
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 <jigaronline@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,
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message