Skip to content

[Feature] Allow Controlling Search Combinator in Log Section #1595

Description

@dotsam

Currently the log section component is hard-coded to always do an "AND" search:

const {
data: searchLog,
refetch: searchRefetch,
isFetching: searchLoading,
} = useRead(
`Search${target.type}Log`,
{
...targetParams(target),
terms,
combinator: Types.SearchCombinator.And,
invert,
timestamps,
} as any,
{ enabled: !!terms.length, refetchInterval: poll ? 10_000 : undefined },
);

It would be helpful to be able to control this behaviour, specifically as it applies to an inverted search, as I'm not often looking to do a search for NOT (term1 AND term2) but rather NOT (term1 OR term2)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions