[
https://issues.apache.org/jira/browse/LUCENE-4043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558856#comment-13558856
]
Martijn van Groningen commented on LUCENE-4043:
-----------------------------------------------
I think this happens b/c the Query that the JoinUtil returns doesn't override
the equals and hashcode method (See TermsIncludingScoreQuery). This should be
fixed, otherwise this query can never be cached (this is what the
SolrIndexSearcher does). Can you check if the following works:
{code}
IndexSearcher searcher = new IndexSearcher(req.getSearcher().getIndexReader());
return JoinUtil.createJoinQuery("pageId", true, "fileId", q, searcher,
ScoreMode.Max);
{code}
> Add scoring support for query time join
> ---------------------------------------
>
> Key: LUCENE-4043
> URL: https://issues.apache.org/jira/browse/LUCENE-4043
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/join
> Reporter: Martijn van Groningen
> Fix For: 4.0-ALPHA
>
> Attachments: LUCENE-4043.patch, LUCENE-4043.patch, LUCENE-4043.patch,
> LUCENE-4043.patch
>
>
> Have similar scoring for query time joining just like the index time block
> join (with the score mode).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]