Questions tagged [whoosh]

Whoosh is a fast, featureful, full-text indexing and searching library implemented in pure Python.

Fast, pure-Python, full text indexing, search and spell checking library. Whoosh on the Python Package Index

Whoosh Documentation

373 questions
0
votes
0 answers

How to Initialize the value for the variable when runserver Django website thyon

I have a dictionary.txt file represented as {{key: value}}. I built a dictionary translation web so I wanted to initialize a variable whose data dictionary type is in python for storing. I use the django framework to process. Here is my dictionary…
hoang long
  • 35
  • 2
0
votes
1 answer

Django Haystack __contains field lookup not working

Recently I use Haystack and whoosh for keyword search in my django project.But I use SearchQuerySet to filter with "__contains" and return error result.There is model and index. class Team(models.Model): name =…
0
votes
1 answer

Whoosh (django haystack) error IndexError: string index out of range

When I run update_index or rebuild_index on django for django haystack during build it throws this error File "/home/ubuntu/webapps/djangoenv/local/lib/python2.7/site-packages/django/template/base.py", line 624, in resolve new_obj = func(obj,…
Sam B.
  • 2,703
  • 8
  • 40
  • 78
0
votes
1 answer

Django Haystack: whoosh.index.IndexVersionError: Can't read format -111

Setting up django 1.7 with haystack 2.0.0 and whoosh 2.4.0 when I run python manage.py rebuild_index get this error: Removing all documents from your index because you said so. Traceback (most recent call last): File "manage.py", line 11, in…
Sam B.
  • 2,703
  • 8
  • 40
  • 78
0
votes
0 answers

Upgrade django-haystack from 2.4.1 to 2.5.0 not working

I want to upgrade django-haystack in my app from 2.4.1 to 2.5.0. On version 2.4.1 my code works fine. But when I installed verison 2.5.0 I get error when I start searching, for example: New york and I dont have any search results. "GET…
mark
  • 1,027
  • 2
  • 7
  • 7
0
votes
0 answers

Flask-WhooshAlchemy returning empty

I'm developing a Python-Flask application and I want to implement a Full Text Search which is pretty simple with Flask-WhooshAlchemy, atleast I thought so. This is driving me crazy because , apparently, there isnt any reason why this isnt working.…
Perseverance
  • 337
  • 5
  • 18
0
votes
2 answers

Django + Haystack + Whoosh, no results in production

I'm building a Django application using Haystack+Whoosh for search. In the development environment, search works as expected. However, in production, searches consistently return no results. Development: $> python manage.py rebuild_index ... All…
James H.
  • 99
  • 11
0
votes
0 answers

Haystack not displaying results

I search for terms in the model and it didnt bring 'No result found'.I checked the source code of the page and it claerly shows it is seeing something in the search but its not displaying it in browser

Results

A.Lang
  • 59
  • 1
  • 8
0
votes
0 answers

Django - Calling .object on a SearchQuerySet() returns None

I've hit a dead end with my django 1.9.5 project. Im running Haystack 2.4.1 and Whoosh 2.7.4 as a search-engine. Here is my poblem: When accessing followng view: def search_titles(request): resources =…
Helliaca
  • 183
  • 2
  • 10
0
votes
0 answers

Haystack ordering search results by an IntegerField

I'm working with haystack + Whoosh and DJango to build a basic search engine. What I want to do is that each of my search results will have a "favourites" value (default is 0). And I want to sort these results by this integer with the results with…
GreenGodot
  • 6,030
  • 10
  • 37
  • 66
0
votes
0 answers

Using Whoosh on PySpark - Sending Index to Each Node?

I'm creating an index using Whoosh on ~100 documents that are about 8MB each. I have a list 17 million phrases that I need to search for in these docs, so I'm considering using PySpark on EMR to distribute the load. Is there a way to distribute the…
econgineer
  • 1,117
  • 10
  • 20
0
votes
1 answer

whoosh search after database migration

I migrated my database from sqlite3 to postgresql with the following three steps I create a sqlite dump file with sqlite3 app.db .dump > app_dump.sql I create a postgresql database and initialized it with my models.py file as python manage.py db…
carl
  • 4,216
  • 9
  • 55
  • 103
0
votes
1 answer

I am using django haystack with whoosh , But there some error after entering some search query in searchbar, below is the description

Error screenshot AttributeError at /search/ 'NoneType' object has no attribute '_default_manager' Request Method: GET Request URL: http://127.0.0.1:8000/search/?q=desktop Django Version: 1.9 Exception Type:…
0
votes
1 answer

Categorize results based on Model in haystack?

When we search using the SearchQuerySet API provided by django-haystack the result is a list containing objects of model instances across all of the indexes. Now for post computation I want to categorize search result based on the model from which…
ofnowhere
  • 1,114
  • 2
  • 16
  • 40
0
votes
0 answers

Haystack not working after upgrading to django 1.7

I have django haystack 2.0.0 with whoosh setup like this HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'PATH': '/home/kbuzz/whoosh_index', 'EXCLUDED_INDEXES':…