[hibernate-dev] [HSearch] Faceting feedback

Hardy Ferentschik hibernate at ferentschik.de
Tue Mar 1 11:36:42 EST 2011


On Tue, 01 Mar 2011 17:34:58 +0100, Emmanuel Bernard  
<emmanuel at hibernate.org> wrote:

>>> FacetRequest request =
>>> carBuilder
>>>  .facet()
>>>    .named("prices")
>>>    .range() //or should it be range(Integer.class)
>>>    .onField("price")
>>>    .from(0).to(1000).excludeLimit()
>>>    .from(1000).to(1500).excludeLimit()
>>>    .above(1500)
>>>    .orderedBy(FIELD_VALUE);
>>>
>>> query.enableFacet(request);
>>
>> Got you. This brings up another question. Should we only have this DSL  
>> based approach or should we
>> keep also have the current programmatic approach. If we keep it all we  
>> end could end up
>> with annotation, DSL and "standard programmatic" versions of the API
>
> I see the DSL as a better approach for the programmatic API, not an  
> alternative. We would keep the underlying API private to us basically.
> Do you think that make sense?

Sure.



More information about the hibernate-dev mailing list