Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

great-sitemap-search

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

great-sitemap-search

A really simple search backend for your site based on a crawler that scanns all pages in sitemap.xml

  • 0.2
  • PyPI
  • Socket score

Maintainers
1

===== SIMPLESEARCH

Simplesearch provides an easy and really simple way to offer search on your website. it installs a Class that you can use to execute queries and a managment command you can use to update the indext pages based on a sitemap.xml

Quick start

  1. Add "simplesearch" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = ( ... 'simplesearch', )

  2. edit settings.py file to include the location of the search index.

INDEX_DIR = os.path.join(BASE_DIR, 'index')

  1. run the command ./manage.py update_search_index

  2. access the search backen from your views with: from simplesearch import SimpleSiteSearcher

    searcher = SimpleSiteSearcher() results = searcher.search('a query String')

    This will return a list like this:

    [ { title:'some tiele', text:'relevant part of the searched text with on the important terms', url:'the url to the page on your site where the text was found' }, ... ] you may then use the list in your templates to display the search results.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc