CoreProtect-Lookup-Web-Interface icon indicating copy to clipboard operation
CoreProtect-Lookup-Web-Interface copied to clipboard

Exclusive Filter for Keyword Search

Open Dyllaann opened this issue 7 years ago • 5 comments

Hey.

I was wondering if there was a way to implement a filter for results? I don't want /login and /register commands showing up in the logs.

Dyllaann avatar Apr 11 '17 15:04 Dyllaann

I can look into it when I have more free time. It's definitely something I will want to add.

chuushi avatar Apr 11 '17 17:04 chuushi

Found a hardcode way to do this myself.

/res/js/lookup.js : line 485

485 for (i = 0; i<r.length; i++) {
486            if((r[i].data.indexOf("login") !== -1) || (r[i].data.indexOf("register") !== -1)){continue;}
487            // UNIX to JS Date

Copy and paste my line 486 and paste it in between the for loop and comment.

Dyllaann avatar Jul 01 '17 19:07 Dyllaann

I might code it in the PHP backend rather than after getting the data. I'll most likely do it this month.

chuushi avatar Jul 02 '17 00:07 chuushi

I'll look into implementing this at pre3 or pre4, which should come in the coming weeks!

chuushi avatar May 18 '20 07:05 chuushi

Somewhat related to this. I am using sqlite database (for the moment) and the keyword search seemed to be not working at all.

I had implemented it for the Chat Messages, Commands and Usernames. Can push or send details of the implementation.

I have some potential TODO:

  • allow multiple keywords (for example | (pipe) or space separated)
  • add Exclude switch to filter out the typed keywords

Interrested?

tomas-kucera avatar Dec 18 '20 15:12 tomas-kucera