Move more token filters to analysis-common module#25784
Conversation
There was a problem hiding this comment.
how hard would it be to keep this test in core by plugging in a mochk payload filter?
There was a problem hiding this comment.
It all depends on if you are testing the term vectors API (stay in core with a mock) or if you are testing something super specific to this token filter. If it is specific, then I'd move it over.
There was a problem hiding this comment.
We ESIntegTestCase subclasses to end in either Tests or IT when they are outside of core but since they don't need the Elasticsearch I like to name them like Tests instead of IT.
There was a problem hiding this comment.
I'll try move this test back to core and use a mock payload filter.
There was a problem hiding this comment.
There was a problem hiding this comment.
I think I was trying to keep them in alphabetical order.... No big deal.
There was a problem hiding this comment.
I re-arranged the lines in alphabetical order.
There was a problem hiding this comment.
It all depends on if you are testing the term vectors API (stay in core with a mock) or if you are testing something super specific to this token filter. If it is specific, then I'd move it over.
There was a problem hiding this comment.
We ESIntegTestCase subclasses to end in either Tests or IT when they are outside of core but since they don't need the Elasticsearch I like to name them like Tests instead of IT.
db8e9bf to
ecc1481
Compare
There was a problem hiding this comment.
I'd prefer
else {
return false;
}
Just a bit more balanced looking. No big deal either way I guess.
The following token filters were moved: delimited_payload_filter, keep, keep_types, classic, apostrophe, decimal_digit, fingerprint, min_hash and scandinavian_folding. Relates to elastic#23658
625106b to
0b776a1
Compare
The following token filters were moved: delimited_payload_filter, keep, keep_types, classic, apostrophe, decimal_digit, fingerprint, min_hash and scandinavian_folding.
Relates to #23658