You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrey Kudryavtsev (JIRA)" <ji...@apache.org> on 2014/03/19 17:45:45 UTC
[jira] [Created] (SOLR-5882) Support scoreMode parameter for
BlockJoinParentQParser
Andrey Kudryavtsev created SOLR-5882:
----------------------------------------
Summary: Support scoreMode parameter for BlockJoinParentQParser
Key: SOLR-5882
URL: https://issues.apache.org/jira/browse/SOLR-5882
Project: Solr
Issue Type: New Feature
Affects Versions: 4.8
Reporter: Andrey Kudryavtsev
Today BlockJoinParentQParser creates queries with hardcoded _scoring mode_ "None":
{code:borderStyle=solid}
protected Query createQuery(Query parentList, Query query) {
return new ToParentBlockJoinQuery(query, getFilter(parentList), ScoreMode.None);
}
{code}
Analogically BlockJoinChildQParser creates queries with hardcoded _doScores_ "false":
{code:borderStyle=solid}
protected Query createQuery(Query parentListQuery, Query query) {
return new ToChildBlockJoinQuery(query, getFilter(parentListQuery), false);
}
{code}
I propose to have ability to configure this scoring options via query syntax.
Syntax for parent queries can be like:
{code:borderStyle=solid}
{!parent which=type:parent scoreMode=None|Avg|Max|Total}
{code}
For child query:
{code:borderStyle=solid}
{!child of=type:parent doScores=true|false}
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org