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

  • Home
  • SEARCH
  • 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 3217206
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:23:03+00:00 2026-05-17T15:23:03+00:00

I am trying to implement search with Django haystack and solr, but I get

  • 0

I am trying to implement search with Django haystack and solr, but I get this error when trying to implement faceted searching on a SearchIndex and then trying to run the server:

TypeError: init() got an unexpected keyword argument ‘faceted’

Here is the SearchIndex:

import datetime
from haystack.indexes import *
from haystack import site
from resources.models import Resource

class ResourceIndex(SearchIndex):
    text = CharField(document=True, use_template=True)
    author = CharField(model_attr='submitter', faceted=True)
    pub_date = DateTimeField(model_attr='created')

    def get_queryset(self):
        """Used when the entire index for model is updated."""
        return Resource.objects.filter(last_modified__lte=datetime.datetime.now())

site.register(Resource, ResourceIndex)
  • 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. Editorial Team
    Editorial Team
    2026-05-17T15:23:04+00:00Added an answer on May 17, 2026 at 3:23 pm

    If you installed haystack using easy_install or pip, you got version 1.01 and that apparently doesn’t support the “faceted” keyword argument on haystack.indexes.CharField.

    From Daniel Lindsley: faceted equals true thread

    You’ll have to install git master version instead of the 1.01 release provided in PyPi (which easy_install and pip will install by default)

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

Sidebar

Related Questions

I am trying to implement a djapian based full text search for searching user
I'm trying to implement a Search-Function using c++ and libpqxx. But I've got the
I'm trying to implement a search for my project , but i can't figure
I'm trying to implement search result highlighting for pdfs in a web app. I
I am trying to implement an internal search for my website that can point
I'm trying to implement something like this: <div> <table> <thead> <tr> <td>Port name</td> <td>Current
im trying to implement local search api, to retreive data for shops and other
Im trying to implement the search feature in my website. when the search keyword
I'm trying to implement a search, where you can enter more than one searchterm
I am trying to implement a search page with 2 tabs: Basic Search Options

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.