Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    pfSense GUI search alpha version for testing

    Scheduled Pinned Locked Moved Development
    10 Posts 2 Posters 331 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • w0wW Offline
      w0w
      last edited by w0w

      4a3372d7-3988-45f7-8535-518daed298b7-{30F2BCB0-51F8-463B-811E-CFFC8C56ADC6}.png

      pfsense-quicksearch-0.4.4.pkg.zip or https://github.com/woffko/pfSense-quick-search/releases/tag/v0.4.4-alpha
      Unpack, copy to /root
      To install use

      pkg add /root/pfsense-quicksearch-0.4.4.pkg
      

      To remove

      pkg delete pfsense-quicksearch
      

      Powered by AI, so expect that anything could go wrong.

      patient0P 1 Reply Last reply Reply Quote 0
      • patient0P Offline
        patient0 @w0w
        last edited by

        @w0w I do love that feature on the OtherSense and installed your package on pfSense CE 2.8.1 and it works great. Not sure if it will eat my children because of AI :) but hey sacrifices are necessary šŸ˜€.

        Is it possible that it starts showing results without first having to press 'Enter', like after one enters at least 3 characters or so?

        w0wW 1 Reply Last reply Reply Quote 0
        • w0wW Offline
          w0w @patient0
          last edited by

          @patient0 said in pfSense GUI search alpha version for testing:

          Is it possible that it starts showing results without first having to press 'Enter',

          Yes, it’s possible, but it will put extra load on the firewall hardware in this implementation. I need to think about how to make it work properly.

          patient0P 1 Reply Last reply Reply Quote 1
          • patient0P Offline
            patient0 @w0w
            last edited by patient0

            @w0w said in pfSense GUI search alpha version for testing:

            Yes, it’s possible, but it will put extra load on the firewall hardware in this implementation. I need to think about how to make it work properly.

            No worries and no hurry.

            Another question: Does it index automatically? E.g. if I install a pfSense packages after I installed quicksearch will it index the GUI elements?

            Edit: I can answer it: It doesn't see new packages. A reboot was necessary. That could be improved :)

            1 Reply Last reply Reply Quote 0
            • patient0P Offline
              patient0
              last edited by patient0

              A few comments to add what I wrote before:

              • If a package is added (Wireguard in my case) it won't find it after the installation. Reboot was necessary
              • The same goes for removing a package. Again, Wireguard in my case. After removing it a reboot was necessary for it not to be found. Neither restart the GUI nor restart PHP-FM in the console menu helped.
              • After pressing 'Enter' to list the items matching the text, it would be helpful if one could iterate through the items with e.g. the up/down keys. Right now that does not work for me.

              Shall I open tickets for it on the git repo?

              w0wW 1 Reply Last reply Reply Quote 0
              • w0wW Offline
                w0w @patient0
                last edited by

                @patient0

                The search works within the www directory and recursively through its subfolders. It looks for PHP files and filters their contents. An index is maintained, but the previous result is cached. You can run

                https://YourFWIP/diag_quicksearch.php?rebuild=1
                

                to test whether rebuilding the index helps or not.

                @patient0 said in pfSense GUI search alpha version for testing:

                Shall I open tickets for it on the git repo?

                Not really, I think I'll look at it as soon as possible.

                patient0P 1 Reply Last reply Reply Quote 0
                • patient0P Offline
                  patient0 @w0w
                  last edited by

                  @w0w said in pfSense GUI search alpha version for testing:

                  https://YourFWIP/diag_quicksearch.php?rebuild=1
                  to test whether rebuilding the index helps or not.

                  That does work, yes, perfect.

                  1 Reply Last reply Reply Quote 1
                  • w0wW Offline
                    w0w
                    last edited by

                    https://github.com/woffko/pfSense-quick-search/releases/tag/v0.4.5

                    New release out

                    • Auto-search: runs 3s after typing stops, with min 3 chars (no manual ā€œFindā€ button).

                    • Icon button: loupe doubles as spinner while typing/searching and as a ā€œRebuild & repeatā€ trigger after results.

                    • Rebuild flow fixed: performs ?rebuild=1 first, then re-runs the last query, covering backends that don’t return results on rebuild.

                    • Request hygiene: cancels prior requests via AbortController and ignores stale responses with a sequence guard.

                    • UX polish: Enter key triggers immediate search; results dropdown closes on outside click/ESC; error state shown inline.

                    • Sizing: icon button height is hard-synced to the input for perfect alignment (optional square width).

                    • Caching: adds a cache-busting timestamp and uses cache: 'no-store'.

                    patient0P 1 Reply Last reply Reply Quote 0
                    • patient0P Offline
                      patient0 @w0w
                      last edited by

                      @w0w searching without pressing 'Enter' is working, although slow.

                      It now takes a few seconds while before with pressing 'Enter' produced the results in a second or less.

                      w0wW 1 Reply Last reply Reply Quote 0
                      • w0wW Offline
                        w0w @patient0
                        last edited by

                        @patient0
                        You can press Enter to search or wait a few seconds. Alternatively, edit /usr/local/www/js/quicksearch_inline.js to adjust the idle delay (in milliseconds). 3000 ms (3 s) is quite long—try 100–500 ms.

                        const IDLE_MS = 3000;
                        
                        1 Reply Last reply Reply Quote 1
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.