lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jigar Shah <jigaronl...@gmail.com>
Subject Re: Faceted Search Hierarchy
Date Thu, 08 Jan 2015 13:27:03 GMT
Is there some way to achieve this at Lucene level. so i can get facet like
below ?

Doc1: Asia + Asia/India
Doc2: India + Asia/India/Gujarat

Which can result into this:

Asia/India/Gujarat (2)

Can Lucene internally index like above, as 'India' value already exist as
path of some other document ?
Or some other ways that can be explored within Lucene.



On Thu, Jan 8, 2015 at 5:26 PM, Shai Erera <serera@gmail.com> wrote:

> 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