-
Notifications
You must be signed in to change notification settings - Fork 640
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
[Enhancement] Improve search #2149
Comments
Hey @To-om - Will this issue resolve the problems in the Search section of TheHive for Observables? In 4.1.11 and 4.1.12 when you search by dataType it will say Search Result 20 records(s) found and then show no data on either page: Also, when you add another dataType the data still doesn't exist on page 1 but does on page 3: I can create a separate issue if it is not tied to this issue, please let me know! |
I can't reproduce your problem. Please create a new issue and provide some logs (if any). |
Thanks, I will do that! |
Request Type
Enhancement
Feature Description
Goal:
Custom fields
The custom field value are now indexed.
An id (
_id
) has been added to the value of the custom fields. This is can be used to update or remove a value. This will permit de have multiple value for the same custom field.API v0 changes
The API v0 has been enrich with some extra fields in output results.
For cases, case templates and alerts, the format for custom fields becomes:
The id can be used to identify the custom field to update. This should no be a breaking change. With this format of custom fields, only one value is returned.
If several values are present:
API v1 changes
The id of the custom field value has been added in v1 too:
[BREAKING CHANGE]
The value of a custom field cannot be identify by the custom fiel any more. The id of the value must be used. This change impacts the following APIs:
Example of custom field update in a case:
If the name of the custom field is used in a patch, a new custom field is added. The order can be updated with
{ "customFields.~234": {"value": "new value", "order": } }
Search API
The global search API are:
The output is an array of TheHive object (the field
_type
contains its type).Chart API
The time aggregation API are:
A series is an object containing:
An aggregation is one of the following:
The output of time chart is an ordered array of object that contains
_key: Date
(The date of the time bucket) andaggName: aggValue
for each requested aggregation.For example:
returns
The text was updated successfully, but these errors were encountered: