Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 117871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:24:18+00:00 2026-05-11T03:24:18+00:00

I am writing a fairly simple Django application where users can enter string queries.

  • 0

I am writing a fairly simple Django application where users can enter string queries. The application will the search through the database for this string.

Entry.objects.filter(headline__contains=query) 

This query is pretty strait forward but not really helpful to someone who isn’t 100% sure what they are looking for. So I expanded the search.

from django.utils import stopwords  results = Entry.objects.filter(headline__contains=query) if(!results):     query = strip_stopwords(query)     for(q in query.split(' ')):         results += Entry.objects.filter(headline__contains=q) 

I would like to add some additional functionality to this. Searching for miss spelled words, plurals, common homophones (sound the same spelled differently), ect. I was just wondering if any of these things were built into Djangos query language. It isn’t important enough for me to write a huge algorithm for I am really just looking for something built in.

Thanks in advance for all the answers.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:24:18+00:00Added an answer on May 11, 2026 at 3:24 am

    djangos orm doesn’t have this behavior out-of-box, but there are several projects that integrate django w/ search services like:

    • sphinx (django-sphinx)
    • solr, a lightweight version of lucene (djangosearch)
    • lucene (django-search-lucene)

    I cant speak to how well options #2 and #3 work, but I’ve used django-sphinx quite a lot, and am very happy with the results.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a fairly simple WPF desktop application and under build\configuration manager, release
This is a fairly simple problem but I can't find a solution. I write
I am writing a fairly simple SQL query in SQL 2005, but am running
This seems like it would be fairly simple, but I've been unable to find
I'm writing a WPF application with a RichTextBox and a Toolbar (a VERY simple
I'm writing a fairly simple app which, upon a fatal error, displays a dialog
I'm fairly new to Java (been writing other stuff for many years) and unless
I'm writing an error handling module for a fairly complex system architected into layers.
Writing something like this using the loki library , typedef Functor<void> BitButtonPushHandler; throws a
Writing my first Linq application, and I'm trying to find the best way to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.