giranm/pd-live-react

[Bug] Search Issues

jmpoastUP opened this issue · 2 comments

I can't filter on anything past the first few parts of the title when searching.

for example:

PRODUCTION DEGRADED: ptc0231.xl000_ptcprd085.wla.tla.uprr.com (CHK_LOG) - LOGS is degraded - ptcprd085.wla.tla.uprr.com - Workload Job PTC0231.XL000 is in FAILURE status

searching for production or degraded returns this item, trying to filter on anything else (like logs, or workload) returns nothing.

Thanks for raising @jmpoastUP.

On inspection of the Fuse.js options used in PD Live, the search radius appears to use the threshold * distance (which equates to the first 20 characters).

We will look to implement ignoreLocation so the search will apply to all fields regardless of character count.

This has been patched under PR #129 and merged into develop - closing issue.