[ 
https://issues.apache.org/jira/browse/SOLR-6234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Timothy Potter updated SOLR-6234:
---------------------------------
    Attachment: SOLR-6234.patch

Here's an updated patch for trunk. The JavaDoc on the ScoreJoinQParserPlugin 
wasn't passing precommit, so I need to fix that before committing (removed it 
for now).

This does not have the code from the patch Ryan posted yet ...

[~mkhludnev] You mentioned this solution would address SOLR-6357, but I'm still 
seeing the same error when using scorejoin. Can you elaborate on why you think 
this fixes that problem?

{code}
[~/dev/lw/projects/solr_trunk_co/solr]$ curl 
"http://localhost:8983/solr/techproducts/update?commit=true"; -d 
'<delete><query>{!scorejoin from=manu_id_s to=id}ipod</query></delete>'
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">500</int><int 
name="QTime">6</int></lst><lst name="error"><str 
name="msg">org.apache.lucene.search.IndexSearcher cannot be cast to 
org.apache.solr.search.SolrIndexSearcher</str><str 
name="trace">java.lang.ClassCastException: 
org.apache.lucene.search.IndexSearcher cannot be cast to 
org.apache.solr.search.SolrIndexSearcher
        at 
org.apache.solr.search.JoinQuery.createWeight(JoinQParserPlugin.java:207)
        at 
org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:704)
        at 
org.apache.lucene.search.BooleanWeight.&lt;init&gt;(BooleanWeight.java:56)
        at 
org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:197)
        at 
org.apache.solr.update.DeleteByQueryWrapper.createWeight(DeleteByQueryWrapper.java:72)
        at 
org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:704)
        at 
org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:687)
        at 
org.apache.lucene.search.QueryWrapperFilter.getDocIdSet(QueryWrapperFilter.java:63)
        at 
org.apache.lucene.index.BufferedUpdatesStream.applyQueryDeletes(BufferedUpdatesStream.java:690)
        at 
org.apache.lucene.index.BufferedUpdatesStream.applyDeletesAndUpdates(BufferedUpdatesStream.java:261)
        at 
org.apache.lucene.index.IndexWriter.applyAllDeletesAndUpdates(IndexWriter.java:3148)
        at 
org.apache.lucene.index.IndexWriter.maybeApplyDeletes(IndexWriter.java:3134)
        at 
org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2808)
        at 
org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2962)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2929)
{code}

> Scoring modes for query time join 
> ----------------------------------
>
>                 Key: SOLR-6234
>                 URL: https://issues.apache.org/jira/browse/SOLR-6234
>             Project: Solr
>          Issue Type: New Feature
>          Components: query parsers
>    Affects Versions: 5.3
>            Reporter: Mikhail Khludnev
>            Assignee: Timothy Potter
>              Labels: features, patch, test
>             Fix For: 5.3
>
>         Attachments: SOLR-6234.patch, SOLR-6234.patch, SOLR-6234.patch, 
> otherHandler.patch
>
>
> it adds {{scorejoin}} query parser which calls Lucene's JoinUtil underneath. 
> It supports:
> - {{score=none|avg|max|total}} local param (passed as ScoreMode to JoinUtil)
>  - {{score=none}} is *default*, eg if you *omit* this localparam 
> - supports {{b=100}} param to pass {{Query.setBoost()}}.
> - {{multiVals=true|false}} is introduced 
> - there is a test coverage for cross core join case. 
> - so far it joins string and multivalue string fields (Sorted, SortedSet, 
> Binary), but not Numerics DVs. follow-up LUCENE-5868  
> -there was a bug in cross core join, however there is a workaround for it- 
> it's fixed in Dec'14 patch.
> Note: the development of this patch was sponsored by an anonymous contributor 
> and approved for release under Apache License.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to