Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
1.4
-
None
-
None
Description
as part of converting tests for SOLR-1657, I ran into a problem with synonymfilter
the test for 'repeats' has a flaw, it uses this assertTokEqual construct which does not really validate that two lists of token are equal, it just stops at the shorted one.
// repeats map.add(strings("a b"), tokens("ab"), orig, merge); map.add(strings("a b"), tokens("ab"), orig, merge); assertTokEqual(getTokList(map,"a b",false), tokens("ab")); /* in reality the result from getTokList is ab ab ab!!!!! */
when converted to assertTokenStreamContents this problem surfaced. attached is an additional assertion to the existing testcase.
Attachments
Attachments
Issue Links
- blocks
-
SOLR-1657 convert the rest of solr to use the new tokenstream API
- Closed