Fix line length offenders in the o.e.search package.#36223
Fix line length offenders in the o.e.search package.#36223jpountz merged 5 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/es-core-infra |
| 297.1182, 299.4012, 300.6352, 302.1354, 304.1756, 306.1606, 307.3462, 308.5214, 309.4134, 310.8352, 313.9684, 315.837, | ||
| 316.7796, 318.9858, }, | ||
| // precision 7 | ||
| { 92, 93.4934, 94.9758, 96.4574, 97.9718, 99.4954, 101.5302, 103.0756, 104.6374, 106.1782, 107.7888, 109.9522, 111.592, |
| return Objects.equals(p, other.p) && | ||
| Objects.equals(algorithm.get(bucket), other.algorithm.get(bucket)) && | ||
| Objects.equals(getComparableData(bucket), other.getComparableData(bucket)); | ||
| return Objects.equals(p, other.p) && Objects.equals(algorithm.get(bucket), other.algorithm.get(bucket)) |
There was a problem hiding this comment.
Could you do these one per line?
| indexRandom(true, docs); | ||
|
|
||
| SearchResponse resp = client().prepareSearch("idx").setTypes("type").setRouting(routing1).setQuery(matchAllQuery()).execute().actionGet(); | ||
| SearchResponse resp = client().prepareSearch("idx").setTypes("type").setRouting(routing1).setQuery(matchAllQuery()).execute() |
| logger.info("Searching for [test:{}]", English.intToEnglish(docToQuery)); | ||
| SearchResponse searchResponse = client().prepareSearch().setTypes("type").setQuery(QueryBuilders.matchQuery("test", English.intToEnglish(docToQuery))) | ||
| SearchResponse searchResponse = client().prepareSearch().setTypes("type") | ||
| .setQuery(QueryBuilders.matchQuery("test", English.intToEnglish(docToQuery))) |
There was a problem hiding this comment.
I think this indentation doesn't line up with the line under it which'll be confusing to read.
| .setQuery( | ||
| geoBoundingBoxQuery("location").setValidationMethod(GeoValidationMethod.COERCE).setCorners(50, 0, -50, 360).type("indexed") | ||
| geoBoundingBoxQuery("location").setValidationMethod(GeoValidationMethod.COERCE).setCorners(50, 0, -50, 360) | ||
| .type("indexed") |
There was a problem hiding this comment.
Having this line on the same indention of as the one that builds the object that it is poking doesn't quite feel right to me.
| for (int i = 0; i < 100; i++) { | ||
| client().prepareIndex("test", "type1", Integer.toString(i)).setSource(jsonBuilder().startObject().field("field", i).endObject()).execute().actionGet(); | ||
| client().prepareIndex("test", "type1", Integer.toString(i)).setSource(jsonBuilder().startObject().field("field", i).endObject()) | ||
| .execute().actionGet(); |
| .endObject() | ||
| ).get(); // we have 2 docs in a segment... | ||
| ForceMergeResponse actionGet = client().admin().indices().prepareForceMerge().setFlush(true).setMaxNumSegments(1).execute().actionGet(); | ||
| ForceMergeResponse actionGet = client().admin().indices().prepareForceMerge().setFlush(true).setMaxNumSegments(1).execute() |
nik9000
left a comment
There was a problem hiding this comment.
LGTM. Thanks for all that cleaning!
|
I'm sorry for your merge conflicts! |
|
No worries, that shouldn't be too hard to fix. Thanks for reviewing! |
|
I am not backporting this one to 6.x as there is a number of conflicts that make this change unsafe. An alternative would be to re-do the change on 6.x but it is very time-consuming. |
Relates #34884