lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe <tomasflo...@gmail.com>
Subject Re: [jira] [Created] (SOLR-2580) Create a new Search Component to alter queries based on business rules.
Date Wed, 08 Jun 2011 15:17:43 GMT
Yes, you can specify a boost query in dismax, but this component will allow
you to add different boost queries based on business rules and the user
query.
Think of this component as something like the Query Elevation Component, but
based on business rules instead of the straight user query, and that it can
boost documents instead of elevating them to the top results.

We'll upload a small POC of this soon to show the idea.

On Wed, Jun 8, 2011 at 11:49 AM, Muhannad <muh.acit@gmail.com> wrote:

> I think you can boost specific brands based on criteria  you use ,
> specifically when using Dismax queryHandler
>
> 2011/6/8 Tomás Fernández Löbbe (JIRA) <jira@apache.org>
>
> Create a new Search Component to alter queries based on business rules.
>> ------------------------------------------------------------------------
>>
>>                 Key: SOLR-2580
>>                 URL: https://issues.apache.org/jira/browse/SOLR-2580
>>             Project: Solr
>>          Issue Type: New Feature
>>            Reporter: Tomás Fernández Löbbe
>>
>>
>> The goal is to be able to adjust the relevance of documents based on user
>> defined business rules.
>>
>> For example, in a e-commerce site, when the user chooses the "shoes"
>> category, we may be interested in boosting products from a certain brand.
>> This can be expressed as a rule in the following way:
>>
>> rule "Boost Adidas products when searching shoes"
>>    when
>>        $qt : QueryTool()
>>        TermQuery(term.field=="category", term.text=="shoes")
>>    then
>>        $qt.boost("{!lucene}brand:adidas");
>> end
>>
>> The QueryTool object should be used to alter the main query in a easy way.
>> Even more human-like rules can be written:
>>
>> rule "Boost Adidas products when searching shoes"
>>  when
>>    Query has term "shoes" in field "product"
>>  then
>>    Add boost query "{!lucene}brand:adidas"
>> end
>>
>> These rules are written in a text file in the config directory and can be
>> modified at runtime. Rules will be managed using JBoss Drools:
>> http://www.jboss.org/drools/drools-expert.html
>>
>> On a first stage, it will allow to add boost queries or change sorting
>> fields based on the user query, but it could be extended to allow more
>> options.
>>
>> --
>> This message is automatically generated by JIRA.
>> For more information on JIRA, see: http://www.atlassian.com/software/jira
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>
>
> --
> *Eng.Muhannad al Hariri *
> *
> *
> *Software Developer*
> *email : muh.acit@gmail.com*
> *twitter : @muh_acit <http://twitter.com/muh_acit>*
> *Skype : muh.hari*
> *phone : *
> *      Jordan +962 78 677 5125*
> *
> *
> *حاسبونا فدققوا ثمّ منّوا فأعتقوا ..هكذا شيمة الملوك
بالمماليك يرفقوا*
> *
> *
>
>

Mime
View raw message