Hi,

which version of Lucene?

Check the OrdinalPolicy you are using in FacetIndexingParams at indexing
time.

I think you should use: NonTopLevelOrdinalPolicy in lucene 3.6.1 or
OrdinalPolicy.ALL_BUT_DIMENSION in lucene 4.2.1



Nicola.


On Thu, 2013-04-25 at 08:32 +0200, Schimke, Danny wrote:
> Hi,
> 
>  
> 
> I am new to lucene. I've done some basics so far. Currently I have to deal 
> with Faceted Search.
> 
>  
> 
> Given:
> 
> For example I have the following categories:
> 
>  
> 
> Root
> 
> Root/idA/
> 
> Root/idA/idB
> 
> Root/idA/idB/idC
> 
>  
> 
> Scenario:
> 
> The search result delivers the folowing FacetResult for example:
> 
>  
> 
> Root (5)
> 
> Root/idA (5)
> 
> Root/idA/idB (3)
> 
> Root/idA/idB/idC (3)
> 
>  
> 
> That means 2 direct matches for Root/idA and 3 direct matches for 
> Root/idA/idB/idC.
> 
>  
> 
> But I want ability to get the count that one category exactly has, without 
> consideration of the subcategories (only "direct" member), e.g.:
> 
>  
> 
> Root (0)
> 
> Root/idA (2)
> 
> Root/idA/idB (0)
> 
> Root/idA/idB/idC (3)
> 
>  
> 
> Maybe there is a standard way don't calculate this by hand in dependence to 
> subcategories?
> 
>  
> 
> How can I achieve this?
> 
> Thanks a lot in advance!
> 
>  
> 
> -Danny
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to