Skip to content

Conversation

@w33ble
Copy link
Contributor

@w33ble w33ble commented Jan 5, 2015

Closes #1951

This is done by checking the size value in the body when flattening the source state, and appending flatState.search_type = 'count', which is then appended to the _msearch request.

This is the correct way to use search_type with _msearch, according to the docs

@w33ble
Copy link
Contributor Author

w33ble commented Jan 5, 2015

I wouldn't mind @spenceralger confirming this is the best way to inject this into the request as well...

@rashidkpc
Copy link
Contributor

This LGTM, and with the last addition really cleans up the spy. Merge master and push it!

@rashidkpc rashidkpc assigned w33ble and unassigned rashidkpc Jan 6, 2015
Conflicts:
	src/kibana/components/courier/fetch/strategy/search.js
w33ble added a commit that referenced this pull request Jan 6, 2015
Appends search_type=count when size is 0
@w33ble w33ble merged commit 500d52f into elastic:master Jan 6, 2015
@w33ble w33ble deleted the search-type branch February 6, 2015 21:04
edmarmoretti pushed a commit to edmarmoretti/kibana-pt-br that referenced this pull request Sep 7, 2025
This enables sorting of defined series for ordering in rendering, legend and tooltip for xy charts.

BREAKING CHANGE: The way mixed stacked/nonstacked series are colored now is different from the previous behaviour. Now we color them not by their insert index but by the way we display them in the rendering: from the left to right, bottom top, stacked, nonstacked. This align correctly also the legend colors by default. This does **not** affect colors assigned via a `SeriesColorAccessor`.
edmarmoretti pushed a commit to edmarmoretti/kibana-pt-br that referenced this pull request Sep 7, 2025
# [68.0.0](elastic/elastic-charts@v67.0.1...v68.0.0) (2024-10-08)

### Features

* **xy:** render sorting ([elastic#2524](elastic/elastic-charts#2524)) ([c514571](elastic/elastic-charts@c514571))

### BREAKING CHANGES

* **xy:** The way mixed stacked/nonstacked series are colored now is different from the previous behaviour. Now we color them not by their insert index but by the way we display them in the rendering: from the left to right, bottom top, stacked, nonstacked. This align correctly also the legend colors by default. This does **not** affect colors assigned via a `SeriesColorAccessor`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use search_type=count if no documents are needed

2 participants