Skip to content

Commit e06201f

Browse files
committed
test: MLT: last result should only contain 'alice'
1 parent ee22030 commit e06201f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/scala/org/zouzias/spark/lucenerdd/LuceneRDDMoreLikeThisSpec.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@ class LuceneRDDMoreLikeThisSpec extends FlatSpec
5151
&& x.contains("wonderland")
5252
&& x.contains("adventures")) should equal(true)
5353

54+
results.last.doc.textField("_1").exists(x => x.contains("alice")
55+
&& !x.contains("wonderland")
56+
&& !x.contains("adventures")) should equal(true)
57+
5458
}
5559
}

0 commit comments

Comments
 (0)