[hibernate-dev] BoostStrategy issues

Emmanuel Bernard emmanuel at hibernate.org
Fri Dec 4 10:33:09 EST 2009


I'm pretty sure you can, we do dynamic boosting like a regular @Boost

On 4 déc. 09, at 15:04, Sanne Grinovero wrote:

> Is that possible?
> I couldn't find the method in Lucene to boost per field, I've only
> looked briefly into 2.9.1.
> The BoostStrategy we had defined is only considered at indexing time,
> are you thinking about a query time boosting?
>
> Would be nice to consider this for the QueryBuilder.
>
> Regards,
> Sanne
>
> 2009/12/4 Emmanuel Bernard <emmanuel at hibernate.org>:
>> I think the BoostStrategy interface is not right.
>> You can't adjust the boost strategy according to the field name and I
>> think that's important (assuming dynamic boosting is used).
>>
>> We probably should rework it to do
>>
>> interface BoostStrategy {
>>   void defineBoost(String fieldName, Object value);
>> }
>>
>> WDYT?
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>





More information about the hibernate-dev mailing list