You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Pascal Dimassimo (Created) (JIRA)" <ji...@apache.org> on 2011/12/15 14:40:31 UTC
[jira] [Created] (SOLR-2972) JoinQParserPlugin uses a hardcoded
lucene QParser
JoinQParserPlugin uses a hardcoded lucene QParser
-------------------------------------------------
Key: SOLR-2972
URL: https://issues.apache.org/jira/browse/SOLR-2972
Project: Solr
Issue Type: Bug
Components: SearchComponents - other
Affects Versions: 4.0
Reporter: Pascal Dimassimo
Priority: Minor
In JoinQParserPlugin.java, the method createParser builds a QParser like this:
QParser fromQueryParser = subQuery(v, "lucene");
This prevent us from using this syntax to select a query parser for the join operation:
qf=text name
q={!join from=manu_id_s to=id defType=dismax}ipod
As a workaround, we can use var dereferencing:
qf=text name
q={!join from=manu_id_s to=id v=$qq}
qq={!dismax}ipod
But according to Hoss, just replacing the hardcoded "lucene" with null should allow to use the first syntax.
See this thread:
http://search-lucene.com/m/y2GA92nZr211&subj=Re+Solr+Join+with+Dismax
--
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-2972) JoinQParserPlugin uses a hardcoded
lucene QParser
Posted by "Yonik Seeley (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170439#comment-13170439 ]
Yonik Seeley commented on SOLR-2972:
------------------------------------
bq. But according to Hoss, just replacing the hardcoded "lucene" with null should allow to use the first syntax.
+1
There was never an intent to prevent defType from working.
> JoinQParserPlugin uses a hardcoded lucene QParser
> -------------------------------------------------
>
> Key: SOLR-2972
> URL: https://issues.apache.org/jira/browse/SOLR-2972
> Project: Solr
> Issue Type: Bug
> Components: SearchComponents - other
> Affects Versions: 4.0
> Reporter: Pascal Dimassimo
> Priority: Minor
>
> In JoinQParserPlugin.java, the method createParser builds a QParser like this:
> QParser fromQueryParser = subQuery(v, "lucene");
> This prevent us from using this syntax to select a query parser for the join operation:
> qf=text name
> q={!join from=manu_id_s to=id defType=dismax}ipod
> As a workaround, we can use var dereferencing:
> qf=text name
> q={!join from=manu_id_s to=id v=$qq}
> qq={!dismax}ipod
> But according to Hoss, just replacing the hardcoded "lucene" with null should allow to use the first syntax.
> See this thread:
> http://search-lucene.com/m/y2GA92nZr211&subj=Re+Solr+Join+with+Dismax
--
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] [Resolved] (SOLR-2972) JoinQParserPlugin uses a hardcoded
lucene QParser
Posted by "Hoss Man (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-2972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man resolved SOLR-2972.
----------------------------
Resolution: Fixed
Fix Version/s: 4.0
Assignee: Hoss Man
Committed revision 1215001. ... no CHANGES.txt entry since JoinQParser is unreleased code.
Pascal: thanks for catching this problem and following up with the Jira.
> JoinQParserPlugin uses a hardcoded lucene QParser
> -------------------------------------------------
>
> Key: SOLR-2972
> URL: https://issues.apache.org/jira/browse/SOLR-2972
> Project: Solr
> Issue Type: Bug
> Components: SearchComponents - other
> Affects Versions: 4.0
> Reporter: Pascal Dimassimo
> Assignee: Hoss Man
> Priority: Minor
> Fix For: 4.0
>
>
> In JoinQParserPlugin.java, the method createParser builds a QParser like this:
> QParser fromQueryParser = subQuery(v, "lucene");
> This prevent us from using this syntax to select a query parser for the join operation:
> qf=text name
> q={!join from=manu_id_s to=id defType=dismax}ipod
> As a workaround, we can use var dereferencing:
> qf=text name
> q={!join from=manu_id_s to=id v=$qq}
> qq={!dismax}ipod
> But according to Hoss, just replacing the hardcoded "lucene" with null should allow to use the first syntax.
> See this thread:
> http://search-lucene.com/m/y2GA92nZr211&subj=Re+Solr+Join+with+Dismax
--
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