[
https://issues.apache.org/jira/browse/LUCENE-4043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558797#comment-13558797
]
David vandendriessche commented on LUCENE-4043:
-----------------------------------------------
Could it be that you're JoinUtil doesn't clear a cache or something?(Could also
be my code) My plugin always works once when I start Solr. It joins and gives
good scores. The second query it always returns the same as the first one?
After reboot it works 1 time and then does the same.
public class TestParserPlugin extends ExtendedDismaxQParserPlugin {
@Override
public QParser createParser(String string, SolrParams sp, SolrParams sp1,
SolrQueryRequest sqr) {
return new TestParserPlugin.TestParser(string, sp1, sp1, sqr);
}
@Override
public void init(NamedList nl) {
}
public class TestParser extends QParser {
public TestParser(String qstr, SolrParams localParams, SolrParams
params, SolrQueryRequest req) {
super(qstr, localParams, params, req);
}
@Override
public org.apache.lucene.search.Query parse() throws
org.apache.lucene.queryparser.classic.ParseException {
//IndexReader reader;
try {
//IndexSearcher searcher=req.getSearcher();
IndexSearcher searcher = req.getSearcher();
Query q = QParser.getParser(qstr, "edismax", req).getQuery();
return JoinUtil.createJoinQuery("pageId", true, "fileId", q,
searcher, ScoreMode.Max);
} catch (IOException ex) {
Logger.getLogger(TestParserPlugin.class.getName()).log(Level.SEVERE, null, ex);
}
return null;
}
@Override
protected void finalize() throws Throwable {
super.finalize();
req.close();
}
}
}
> 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]