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
1
vote
3 answers

Trouble sending data between PHP and Python

I've been trying to set up a very basic search engine using the Whoosh modules in python called on from PHP. I had it working until I upgraded the modules for some additional features I needed. At which point an odd bug seemed to appear. Any print…
usertest
  • 27,132
  • 30
  • 72
  • 94
1
vote
1 answer

Resolving Whoosh IndexingError: Writer is closed

Different from python whoosh IndexingError when interrupted, I've not interrupted any commits but the IndexingError occurs when creating a new index: import uuid import os from whoosh.index import create_in from whoosh.fields import * from…
alvas
  • 115,346
  • 109
  • 446
  • 738
1
vote
0 answers

How i display result From search use Whoosh?

I have some example: Example : Query = "we present" Result: 0 By encoding the rich knowledge that is present in text, these representations are able to capture many aspects of word meaning. 1 In this paper, we present a dependency…
drag
  • 73
  • 7
1
vote
1 answer

ValueError when using Whoosh and Django Haystack

I'm trying to set up Haystack with Whoosh but am getting this value error "ValueError: dictionary update sequence element #0 has length 9; 2 is required" when I run the count method on the SearchQuerySet object in ./manage shell >>>…
Neil
  • 8,925
  • 10
  • 44
  • 49
1
vote
1 answer

whoosh search query with converting '-' into AND

I'm trying to use whoosh to do text searches. When I search for a string containing - (ex.: 'IGF-1R'), it ends up searching for 'IGF' AND '1R', hence not treating it as a single string. Any idea why? Here is the code I'm using: class…
yoann
  • 311
  • 5
  • 17
1
vote
1 answer

Flask - SQLAlchemy full text search

I am trying to build a small online plant database, and would like to incorporate a search engine. I am building my application with Flask and I have the application connected to a MySQL database using SQLAlchemy and pymysql. I have been fiddling…
1
vote
1 answer

Haystack with Whoosh not returning any results

I've installed Django-Haystack and Whoosh and set it all up following the haystack documentation, but no matter what I search for I always get "No results found." on the search page, despite the index apparently being OK. When running "manage.py…
TimJ
  • 399
  • 4
  • 18
1
vote
1 answer

django-haystack + Whoosh SearchQuerySet().all() always None

I am using: django: 1.9.7 django-haystack: 2.5.0 whoosh: 2.7.4 search_index.py class ProfileIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) last_name=…
lcadc17
  • 195
  • 1
  • 16
1
vote
0 answers

django haystack whoosh search

I am trying to create multiple query using haystack-whoosh I am getting error below in command prompt: C:\Users\varun\Desktop\Project\mysite>python manage.py rebuild_index C:\Python34\lib\importlib\_bootstrap.py:321: RemovedInDjango110Warning:…
varun maurya
  • 29
  • 1
  • 7
1
vote
0 answers

Haystack-Whoosh Django search engine works locally but not on production

Using Whosh 2.7.4 and Django-Haystack version 2.5.dev1. We have a similar setup as described here:…
1
vote
3 answers

Django+Haystack+Whoosh: how to deal with language inflection

Many languages in Europe are inflectional. This means that one word can be written in multiple forms in text. For example, word 'computer' in polish "komputer" has multiple forms: "komputera", "komputerowi", "komputerem", "komputery" , etc.. How…
thedk
  • 1,939
  • 1
  • 20
  • 22
1
vote
2 answers

(haystack + woosh) 'rebuild_index' looking for template in wrong location?

I'm implementing haystack with the whoosh search engine. When I run 'rebuild_index' I get the following error in my terminal. File "/home/dilts/installingDJANGO/ENV/lib/python3.5/site-packages/django/template/loader.py", line 74, in…
user1807271
  • 946
  • 3
  • 13
  • 32
1
vote
2 answers

Django-Haystack returns no results in search form

I am using Django-Haystack with Whoosh backend. When I do a query I get no results. I tried the debugging steps suggested in the Haystack docs by typing the following into a Django shell, and I can see that all the text I want has been indexed.…
Sushil
  • 371
  • 1
  • 3
  • 11
1
vote
1 answer

postgres LockError... how to investigate

Hi I am using gunicorn with nginx and a postgreSQL database to run my web app. I recently change my gunicorn command from gunicorn run:app -w 4 -b 0.0.0.0:8080 --workers=1 --timeout=300 to gunicorn run:app -w 4 -b 0.0.0.0:8080 --workers=2…
carl
  • 4,216
  • 9
  • 55
  • 103