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 8916851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:21:09+00:00 2026-06-15T05:21:09+00:00

We are currently running haystack with an elasticsearch backend. We are having trouble getting

  • 0

We are currently running haystack with an elasticsearch backend. We are having trouble getting the partial word search to run correctly.

We currently have an index that has an EdgeNgramField. I have tried doing a search on this field, but I’m not finding any results unless it’s an exact match. I’m trying to use this to find products so for example: I type “sun”, I won’t get the result for “sunglasses”.

I started using curl commands directly on the elasticsearch to see if I could figure out what was happening. I even created my own index directly with curl, along with an ngram analyzer and I receive the proper results using partial word searches.

Another interesting thing is that: if I run the _mapping command using curl on my test index directly on elasticsearch that I created directly with curl, i get the following: “testfield”:{“type”:”string”, “analyzer”:”test_analyzer”}, however, if I run the mapping command on the index created by haystack, it only has “type”:”string”. It says nothing about the edgengram_analyzer that it should be using.

Any ideas?

  • 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-06-15T05:21:10+00:00Added an answer on June 15, 2026 at 5:21 am

    I think there’s a bug in haystack in elasticsearch_backend.py which is not using pyelasticsearch properly line 868 looks like:

    self.conn.put_mapping('modelresult', current_mapping, index=self.index_name)
    

    And if you replace it by:

    self.conn.put_mapping(doc_type='modelresult', mapping=current_mapping, index=self.index_name)
    

    which is how pyelasticsearch expects it, then you will see that the edgengram_analyzer is added to your EdgeNgramField field. At least it works for me.

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

Sidebar

Related Questions

I currently running into trouble with spring security, I have been following the two
I'm currently running into trouble configuring MAMP 2 to use SSL with multiple virtual
I am currently running Selenium commands through PHPUnit to a remote server. I've run
I'm currently running multiple redis instances on one box. Each have their own config,
I have a currently running PHP application that I want to add real-time feed
I am currently running the latest version of Code-blocks in Ubuntu 11.04. I have
I currently have one .war running on tomcat, I wonder if I put another
I am currently running g++ version 4.3.4 and when I run the following command:
I am currently running JSLint against the javascript in my web application and getting
I'm currently running an application that can only be run through a program/s commandline

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.