Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to search on _id in AdvancedFilter #951

Merged
merged 1 commit into from
Jul 26, 2021
Merged

Allow to search on _id in AdvancedFilter #951

merged 1 commit into from
Jul 26, 2021

Conversation

berthieresteban
Copy link
Contributor

Fix #947

Allow to search on _id in AdvancedFilter
⚠️ doesn't work for a partial match since _id field can only be search following term, terms, match and query_string

@berthieresteban berthieresteban self-assigned this Jul 13, 2021
@berthieresteban berthieresteban linked an issue Jul 13, 2021 that may be closed by this pull request
filterToAdd = {
range: {
[filter.attribute]: {
gte: filter.value,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the type of the field is not numeric?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't change the logic in that part, I just refactored it using a switch case
you can see here that the 3 else if of equal not_equal and range where using a ES range filter so I let that filter.
If we need to change that, I would prefer doing it in another PR

@Njuelle Njuelle merged commit 9a37cc2 into 4-dev Jul 26, 2021
@Njuelle Njuelle deleted the 947-search-by-id branch July 26, 2021 14:22
@Aschen Aschen mentioned this pull request Sep 8, 2021
This was referenced Oct 28, 2021
Aschen added a commit that referenced this pull request Nov 2, 2021
# [4.3.0](https://github.com/kuzzleio/kuzzle-admin-console/releases/tag/4.3.0) (2021-11-02)


#### Bug fixes

- [ [#959](#959) ] Add dropdown-view to realtime document view   ([berthieresteban](https://github.com/berthieresteban))
- [ [#968](#968) ] Redirect to Login page if token expired   ([alexandrebouthinon](https://github.com/alexandrebouthinon))
- [ [#935](#935) ] Add loader to documnent list while fetching   ([berthieresteban](https://github.com/berthieresteban))
- [ [#934](#934) ] Add loader and disable modal buttons   ([berthieresteban](https://github.com/berthieresteban))

#### New features

- [ [#951](#951) ]  Allow to search on _id in AdvancedFilter   ([berthieresteban](https://github.com/berthieresteban))
- [ [#949](#949) ] Display geo shapes on map view   ([berthieresteban](https://github.com/berthieresteban))
- [ [#953](#953) ] Add feedback dropdown   ([berthieresteban](https://github.com/berthieresteban))

#### Enhancements

- [ [#970](#970) ] Store Current environment in session storage instead of local storage   ([alexandrebouthinon](https://github.com/alexandrebouthinon))
- [ [#950](#950) ] Delete index dropdown   ([berthieresteban](https://github.com/berthieresteban))
- [ [#960](#960) ] Enhance advanced filter   ([berthieresteban](https://github.com/berthieresteban))
- [ [#952](#952) ] Allow to hide the No Admin Banner    ([berthieresteban](https://github.com/berthieresteban))
- [ [#936](#936) ] Prefill raw filter with query and sort   ([berthieresteban](https://github.com/berthieresteban))
- [ [#953](#953) ] Add feedback dropdown   ([berthieresteban](https://github.com/berthieresteban))
- [ [#948](#948) ] Persist left Sidebar size in the local storage   ([jsatge](https://github.com/jsatge))

#### Others

- [ [#976](#976) ] Bump Kuzzle SDK version   ([xbill82](https://github.com/xbill82))
- [ [#922](#922) ] Fix initial filter displayed value issue   ([berthieresteban](https://github.com/berthieresteban))
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Being able to search documents by ID
3 participants