Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
AkosBakos
MVP Silver
MVP Silver
Jump to solution

Search among section titles

Hi Community,

I got an interesting question from the customer. They have more than 300 section titles. They want to search only in the section titles, not among the rules.

As I know it is impossible, is it?

Akos

----------------
\m/_(>_<)_\m/
0 Kudos
38 Replies
Don_Paterson
MVP Gold
MVP Gold

Cool. 

Sorry if you got 3 or 4 DMs. The platform doesn't show the DMs as sent so I replied to an older one.

Anyways.. it worked!

I'll get the ToolBox version posted tomorrow as per Val's instructions

Have a great day.

0 Kudos
the_rock
MVP Diamond
MVP Diamond

Hey Don, sorry for delayed response. On Sundays, I have to get my daily "dose" on online chess lol. I know Im not Magnus Carlsen, but 2500 rating in blitz is not too terrible. haha.

Thanks a lot Don, greatly appreciated! 🙌

Best,
Andy
"Have a great day and if its not, change it"
the_rock
MVP Diamond
MVP Diamond

Brilliant. Just tested in the lab, works well.

Best,
Andy
"Have a great day and if its not, change it"
0 Kudos
Don_Paterson
MVP Gold
MVP Gold

Nice. Although it felt like cheating 🙂

 

When I tested this I found:

1. The CTRL + F keystroke defaulted to the Web SmartConsole search box.

No problem, just click on the address bar and CTRL + F

 

2. The first search worked well.

Before searching I could see the Sectional Title I searched for, and then Chrome found it (of course),

BUT then I searched for one I knew of that was out of view (further down in the rulebase) and it was not found by the Chrome search feature...  At least not until I scrolled down and then searched again.

I also found that inline layers that contained sectional titles were also not part of the search. They were collapsed, but even after I expanded them and scrolled back up they were not found (meaning that the search for a word in the sectional title was not found unless I scrolled down again).

0 Kudos
Tal_Paz-Fridman
MVP Platinum CHKP MVP Platinum CHKP
MVP Platinum CHKP

I will open an internal RFE for this but I also suggest opening an External RFE through Partner.

Tomer_Noy
MVP Gold CHKP MVP Gold CHKP
MVP Gold CHKP

Searching via browser is a cool idea, but unfortunately it won't work in the general case.

The rulebase control (and other object grids BTW) all work in paging mode. This means that the UI fetches only the data that is visible, plus some extra rows for fast scrolling. The UI doesn't hold the full policy in the browser memory, so the browser cannot search it. This is regardless of inline layers.

The paging is done for optimization, as fetching entire rulebases of thousands of rules would be very slow and unresponsive.

The search functionality in the toolbar actually runs to the server which queries the entire rulebase in the DB (using indexes).

If searching section titles is a significant requirement, it should be looked at as an RFE as part of the rulebase functionality & API.

0 Kudos
Don_Paterson
MVP Gold
MVP Gold

ACK

Thanks for the clarification. All makes sense. 

The API already has the capability to expose the info (see me scripts shared in this thread) but it is part of the policy view and not the section title view (API show command outputs)  

 

0 Kudos
Tomer_Noy
MVP Gold CHKP MVP Gold CHKP
MVP Gold CHKP

There's another nice trick you can use, without resorting to scripting => AI Copilot.

You can tell it the exact policy package and layer (the name is "Network" if there's just one), and ask it to search the section titles and it will use the relevant APIs for you and analyze the results to find what you want.

Here is an example prompt:
"Search the Network rule layer in the Corporate_Policy policy package for section titles with the substring "Access" in the name"

** BTW, when you want the AI to use rulebase APIs it helps to use the word "rulebase" or "rules" in your prompt

AI Copilot - Search Section Titles.png

the_rock
MVP Diamond
MVP Diamond

Thats good too!

Best,
Andy
"Have a great day and if its not, change it"
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events