You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tomás Fernández Löbbe (JIRA)" <ji...@apache.org> on 2011/06/08 16:36:58 UTC
[jira] [Created] (SOLR-2580) Create a new Search Component to alter
queries based on business rules.
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
Re: [jira] [Created] (SOLR-2580) Create a new Search Component to
alter queries based on business rules.
Posted by Tomás Fernández Löbbe <to...@gmail.com>.
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 <mu...@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) <ji...@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*
> *
> *
> *حاسبونا فدققوا ثمّ منّوا فأعتقوا ..هكذا شيمة الملوك بالمماليك يرفقوا*
> *
> *
>
>
Re: [jira] [Created] (SOLR-2580) Create a new Search Component to
alter queries based on business rules.
Posted by Muhannad <mu...@gmail.com>.
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) <ji...@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*
*
*
*حاسبونا فدققوا ثمّ منّوا فأعتقوا ..هكذا شيمة الملوك بالمماليك يرفقوا*
*
*
Re: [jira] [Commented] (SOLR-2580) Create a new Search Component to
alter queries based on business rules.
Posted by Muhannad <mu...@gmail.com>.
Actually I applied business rules using dismax , using a layer to rewrite
the query so that it meets user specific preferences ,so search results for
a user not the same for another user and we can boost queries based on
different fields and for specific values same as elevate !!
On Thu, Jun 9, 2011 at 12:08 AM, Simon Rosenthal (JIRA) <ji...@apache.org>wrote:
>
> [
> https://issues.apache.org/jira/browse/SOLR-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046222#comment-13046222]
>
> Simon Rosenthal commented on SOLR-2580:
> ---------------------------------------
>
> Tomas:l
> I'm not sure why you would want to encapsulate these kind of rules within
> Solr - an e-commerce site would always have an application layer between the
> UI and Solr which seems like the logical place to apply business rules
> leading to modifying the request by adding boosts, specifying sort order,
> etc.
>
> Also, is Drools separate from JBoss (which is used relatively in frequently
> in the Solr community) ?
>
>
> > 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*
*
*
*حاسبونا فدققوا ثمّ منّوا فأعتقوا ..هكذا شيمة الملوك بالمماليك يرفقوا*
*
*
[jira] [Commented] (SOLR-2580) Create Components to Support Using
Business Rules in Solr
Posted by "Grant Ingersoll (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164393#comment-13164393 ]
Grant Ingersoll commented on SOLR-2580:
---------------------------------------
Wiki page is up: http://wiki.apache.org/solr/Business%20Rules
> Create Components to Support Using Business Rules in Solr
> ---------------------------------------------------------
>
> 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
> Assignee: Grant Ingersoll
> Fix For: 4.0
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (SOLR-2580) Create a new Search Component to
alter queries based on business rules.
Posted by "Grant Ingersoll (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163758#comment-13163758 ]
Grant Ingersoll commented on SOLR-2580:
---------------------------------------
I'm going to start work on this, but would like to take it a bit beyond just Drools. As I see it, there are a number of requirements necessary to have a successful rules component:
# Boosting/reranking:
## search results
## facets
## Suggestions (spellchecking, related searches, etc. once these get added)
# Rules for adding/removing filters
# Modify fields (via the transformers in Solr) as they come out -- for instance, alter the price field
# (Optional) Modify documents to be indexed by rules -- lower priority
I think Drools would make for a nice first implementation, but I also see that we the QueryElevationComponent (or a modified version of it) is a simple form of some of these things, so the idea would be to make a thin layer in between to make the engines pluggable.
> 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
> Assignee: Grant Ingersoll
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Updated] (SOLR-2580) Create Components to Support Using
Business Rules in Solr
Posted by "Grant Ingersoll (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grant Ingersoll updated SOLR-2580:
----------------------------------
Component/s: Rules
> Create Components to Support Using Business Rules in Solr
> ---------------------------------------------------------
>
> Key: SOLR-2580
> URL: https://issues.apache.org/jira/browse/SOLR-2580
> Project: Solr
> Issue Type: New Feature
> Components: Rules
> Reporter: Tomás Fernández Löbbe
> Assignee: Grant Ingersoll
> Fix For: 4.0
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (SOLR-2580) Create a new Search Component to
alter queries based on business rules.
Posted by "Simon Rosenthal (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046222#comment-13046222 ]
Simon Rosenthal commented on SOLR-2580:
---------------------------------------
Tomas:l
I'm not sure why you would want to encapsulate these kind of rules within Solr - an e-commerce site would always have an application layer between the UI and Solr which seems like the logical place to apply business rules leading to modifying the request by adding boosts, specifying sort order, etc.
Also, is Drools separate from JBoss (which is used relatively in frequently in the Solr community) ?
> 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
[jira] [Commented] (SOLR-2580) Create a new Search Component to
alter queries based on business rules.
Posted by "Tomás Fernández Löbbe (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046514#comment-13046514 ]
Tomás Fernández Löbbe commented on SOLR-2580:
---------------------------------------------
Basically, it's just another component designed to modify the relevancy of documents, as the QueryElevationComponent is. Of course, this could be implemented by each site on the application layer but I think it would be very helpful to write one reusable component, then everybody can use the same, they don't reinvent the wheel and they can invest the effort in improving it.
Should it be included in Solr? Personally I think this is something that can be useful to many people and it will add value to Solr. At the end, the community and the committers will decide if they think this is something worthily or not.
JBoss AS is the application server, but JBoss is also an organization that runs many projects (like drools). You don't need to use any application server in particular to make Drools work. It's a library, not an application itself.
> 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
[jira] [Updated] (SOLR-2580) Create Components to Support Using
Business Rules in Solr
Posted by "Grant Ingersoll (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grant Ingersoll updated SOLR-2580:
----------------------------------
Fix Version/s: 4.0
Summary: Create Components to Support Using Business Rules in Solr (was: Create a new Search Component to alter queries based on business rules. )
> Create Components to Support Using Business Rules in Solr
> ---------------------------------------------------------
>
> 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
> Assignee: Grant Ingersoll
> Fix For: 4.0
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Commented] (SOLR-2580) Create Components to Support Using
Business Rules in Solr
Posted by "Grant Ingersoll (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13163761#comment-13163761 ]
Grant Ingersoll commented on SOLR-2580:
---------------------------------------
I'm going to use this issue to be the "master" issue and then open/link other issues. There are some things that also need to be fixed in QEC to make it viable as an option for this stuff.
> Create Components to Support Using Business Rules in Solr
> ---------------------------------------------------------
>
> 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
> Assignee: Grant Ingersoll
> Fix For: 4.0
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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
[jira] [Assigned] (SOLR-2580) Create a new Search Component to
alter queries based on business rules.
Posted by "Grant Ingersoll (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Grant Ingersoll reassigned SOLR-2580:
-------------------------------------
Assignee: Grant Ingersoll
> 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
> Assignee: Grant Ingersoll
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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