whatisgithub

What is saved_searches?

django-haystack/saved_searches — explained in plain English

Analysis updated 2026-07-14 · repo last pushed 2013-12-03

78PythonAudience · pm founderComplexity · 2/5DormantSetup · moderate

In one sentence

A Django add-on that records what each user searches for on your site, letting you build features like recent searches, personalized recommendations, or email alerts based on search history.

Mindmap

mindmap
  root((repo))
    What it does
      Stores user searches
      Links searches to accounts
      Retrieves search history
    Works with
      Django framework
      Haystack search toolkit
    Use cases
      Recent searches display
      Personalized content
      Email alert triggers
    Audience
      Founders
      Product managers
      Django developers
    Setup
      Add to project
      Update database
      Swap search page
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Show users a list of their recent searches on your Django site.

USE CASE 2

Send email alerts when new content matches a user's saved search query.

USE CASE 3

Personalize homepage content based on what a user has searched for before.

USE CASE 4

Analyze popular search terms to understand what users are looking for.

What is it built with?

PythonDjangoHaystack

How does it compare?

django-haystack/saved_searchesstainlu/stainfulkrishnaik06/multiple-linear-regression
Stars787877
LanguagePythonPythonPython
Last pushed2013-12-032019-01-31
MaintenanceDormantDormant
Setup difficultymoderatemoderateeasy
Complexity2/53/51/5
Audiencepm founderdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an existing Django project with Haystack already configured and running.

So what is it?

saved_searches is a tool for websites built with Django that remembers what each user has searched for, so you can build personalized features like "recent searches" or recommended content based on their search history. It works as an add-on to Haystack, which is a popular search toolkit for Django sites. When someone runs a search on your website, this tool quietly stores a record of what they looked for and links it to their account. You can then retrieve that history later to show users their past searches or to analyze what people are most interested in finding. This would be useful for a founder or product manager building an e-commerce site, a job board, a real estate platform, or any Django-powered website where understanding user behavior matters. For example, if someone searches for "two-bedroom apartments" several times, you could use that saved search data to send them email alerts when new matching listings appear, or to personalize the homepage to show similar properties. The setup is straightforward if you already have Django and Haystack running. You add it to your project, update your database, and swap out your existing search page for the one this tool provides. It requires Django 1.2 or newer and Haystack 2.0 or newer. The README notes that if you are using an older version of Haystack, you would need an older version of this package instead. Beyond that, the README does not go into detail about configuration options or advanced usage patterns.

Copy-paste prompts

Prompt 1
I have a Django site using Haystack. Help me install saved_searches, run the database migration, and swap my existing search page to start recording user searches.
Prompt 2
I want to show each logged-in user their last 10 searches on my Django site using saved_searches. Write the view and template code to retrieve and display their saved search history.
Prompt 3
Using saved_searches with Django and Haystack, help me build an email alert feature that notifies a user when new listings match one of their previous search queries.
Prompt 4
I have saved_searches recording user searches on my Django e-commerce site. Help me query the most popular search terms across all users so I can feature trending products on the homepage.

Frequently asked questions

What is saved_searches?

A Django add-on that records what each user searches for on your site, letting you build features like recent searches, personalized recommendations, or email alerts based on search history.

What language is saved_searches written in?

Mainly Python. The stack also includes Python, Django, Haystack.

Is saved_searches actively maintained?

Dormant — no commits in 2+ years (last push 2013-12-03).

How hard is saved_searches to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is saved_searches for?

Mainly pm founder.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.