mirror of https://github.com/apache/lucene.git
SOLR-6357: Allow delete documents by doing a score join query.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1693338 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c8bdf9bf19
commit
db1f4a81a7
|
@ -253,6 +253,8 @@ Bug Fixes
|
||||||
* SOLR-7842: ZK connection loss or session expiry events should not fire config directory listeners.
|
* SOLR-7842: ZK connection loss or session expiry events should not fire config directory listeners.
|
||||||
(noble, shalin)
|
(noble, shalin)
|
||||||
|
|
||||||
|
* SOLR-6357: Allow delete documents by doing a score join query. (Mikhail Khludnev, Timothy Potter)
|
||||||
|
|
||||||
Optimizations
|
Optimizations
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
|
|
@ -115,6 +115,15 @@ public class TestScoreJoinQPScore extends SolrTestCaseJ4 {
|
||||||
dir.close();*/
|
dir.close();*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testDeleteByScoreJoinQuery() throws Exception {
|
||||||
|
indexDataForScorring();
|
||||||
|
String joinQuery = "{!join from=" + toField + " to=" + idField + " score=Max}title:random";
|
||||||
|
assertJQ(req("q", joinQuery, "fl", "id"), "/response=={'numFound':2,'start':0,'docs':[{'id':'1'},{'id':'4'}]}");
|
||||||
|
assertU(delQ(joinQuery));
|
||||||
|
assertU(commit());
|
||||||
|
assertJQ(req("q", joinQuery, "fl", "id"), "/response=={'numFound':0,'start':0,'docs':[]}");
|
||||||
|
}
|
||||||
|
|
||||||
public void testSimpleWithScoring() throws Exception {
|
public void testSimpleWithScoring() throws Exception {
|
||||||
indexDataForScorring();
|
indexDataForScorring();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue