[hibernate-dev] [HSearch] Facet drilldown

Hardy Ferentschik hibernate at ferentschik.de
Mon Mar 14 11:33:27 EDT 2011


On Mon, 14 Mar 2011 15:00:59 +0100, Emmanuel Bernard  
<emmanuel at hibernate.org> wrote:


> Actually, I think we should have a FacetManager interface that hosts all  
> the facet related methods of FullTextQuery
> ftQuery.getFacetManager().enableFacet( "oh-my" );
>
> It's easier for people to find and that can be reused by JPA's  
> FullTextQuery (not implemented today BTW).

I am kind of undecided on this one. Obviously the JPA fulltext query
did not have the facet api methods yet, but so far we just solved this
with delegation (the latest commmit on  
https://github.com/hferentschik/hibernate-search/commits/HSEARCH-706
contains the missing methods).

Regarding a facet manager - it feels it is not really consistent with the
existing API. Why introducing a manager for faceting? So far we did  
everything
on the query.
It also introduces another level of indirection, something I tried to  
reduce now by eg
removing FacetResult

--Hardy



More information about the hibernate-dev mailing list