Caching SearXNG

This revision is from 2024/03/17 09:36. You can Restore it.

SearXNG installs itself on /usr/local/searxng/searxng-src, with the main source code in searxng-src directory.

To hack the results, the file is webapp.py in /usr/local/searxng/searxng-src/searx/webapp.py

The function in webapp.py is...

@app.route('/search', methods=[['GET', 'POST']])

def search():

One sqlite3 database. Named: searxng_distributed_cache.db

  1. stores the search terms
  2. stores the urls

Proposed searxng options: 1. Use cache, 2. Update the cache, 3. Disclosure to end user

Benefits: Turns searxng into a full search engine built from caching results and searches are against a local file, so it speeds up searching... offline searches.

Refactoring def search():

  

📝 📜 ⏱️ ⬆️