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
3
votes
0 answers

Whoosh fuzzy statement not working.

When running this block of code, I don't get a hit on any partial matches I put into the query string. For example "Methyl" doesn't return any hits but entire words like "Jenkins" do. Could someone please point out the issue it's probably something…
AndrewF
  • 59
  • 8
3
votes
1 answer

Whoosh not searching words with accent

I'm using Whoosh to implement a tiny local search engine. Documents contain both French and English languages. As you may know, accents (à è é ...) are frequently used in the French language. So I had to deal with them using the accent folding as…
user3046287
3
votes
1 answer

Using Whoosh with a SQLITE3.db (Python)

Could someone give me an example of using whoosh for a sqlite3 database, I want to index my database. Just a simple connect and searching through the database would be great. I searched online and was not able to find an examples for sqlite3.
Jack
  • 275
  • 1
  • 6
  • 24
3
votes
0 answers

Whoosh strict exact phrase matches with special characters

I'm using whoosh to index 100k+ documents because I want to run many literal phrase queries with some special characters such as "A" Vancouver Island or !Action Pact!. I've created an index using: schema = Schema(path=ID(stored=True),…
afinemonkey
  • 171
  • 2
  • 7
3
votes
1 answer

Django-Haystack + Whoosh - empty index after rebuild_index

I'm trying to use Haystack with Whoosh to index and search in my app. When I'm rebuilding the index I'm getting this results: All documents removed. Updating backend: default default: Backend doesn't require rebuild. Skipping this is my…
Rani
  • 6,424
  • 1
  • 23
  • 31
3
votes
0 answers

How to use Whoosh to extract unstemmed keywords from a text?

I’m using Whoosh with Haystack. Haystack does not abstract the keyword extraction in Whoosh, so I’m using Whoosh directly for this feature. @property def keywords(self): whoosh_backend = SearchForm().searchqueryset.query.backend if not…
Dawn Drescher
  • 901
  • 11
  • 17
3
votes
2 answers

Filter blank CharField in Django Haystack's SearchQuerySet

I need to return all entries in a SearchQuerySet where a certain CharField is blank i.e. an empty string. In my search_indexes.py I have: sometext = indexes.CharField(model_attr='sometext') I've tried filtering using the usual SQS…
echus
  • 51
  • 5
3
votes
3 answers

ImportError: cannot import name connections

I wanted to include full text search in my django application. I am using whoosh-haystack for this.When I include whoosh and haystack in my installed apps,and execute the command ./manage.py, I am getting an import error. Can anyone sort this…
Swathi Pantala
  • 335
  • 1
  • 6
  • 13
3
votes
1 answer

Haystack + Whoosh IndexError: Index was created on an architecture with different data sizes

When rebuilding my indices via ./manage.py rebuild_index I get this error: Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File…
john2x
  • 22,546
  • 16
  • 57
  • 95
3
votes
3 answers

Django-Haystack/Whoosh - Rebuild Index Error

Python 2.5, Django 1.2.1, most recent haystack, most recent whoosh This is my first delve into Django-Haystack. I was following the "Getting Started" guide from Haystack and everything seemed to be going along fine, until I went to build the…
Brant
  • 5,721
  • 4
  • 36
  • 39
3
votes
0 answers

django haystack field with indexed=False, does that improve search performance?, search is slow?

I am a new bee. I read the whole django haystack tutorial, I am trying to make the search operation faster and looking the ways to optimize. I am using whoosh with haystack. SearchQuerySet().all (search engine is whoosh) operation is taking lot of…
Javed
  • 5,904
  • 4
  • 46
  • 71
3
votes
1 answer

Whoosh indexing

When indexing and searching for query words in whoosh does the program index every time it is ran? I am making a web interface with it so it can display certain results to the user. To do so I am using php to call the python file in the html. I have…
divyanshch
  • 390
  • 5
  • 15
3
votes
1 answer

Where does Whoosh (Python) physically store the indexed content?

I am beginning to research on content indexing implementation, and was having a look at Whoosh (https://pypi.python.org/pypi/Whoosh/). I am curious to know where Whoosh stores its content physically - Is it using files?
Riten Vagadiya
  • 123
  • 1
  • 8
3
votes
1 answer

Two search-related errors in Django: When no search-term: "reduce() of empty sequence with no initial value". On any search-term: No results

I'm getting two search-related errors in Django (version 1.7, Windows 7, 32-bit), using AJAX and haystack.query.SearchQuerySet. First, when there's nothing in the search box (or if you only type a space): Exception Value: reduce() of empty sequence…
aliteralmind
  • 19,847
  • 17
  • 77
  • 108
3
votes
1 answer

how to highlight a search query in my results inside template

Ok, so I have this simple search page implemented with Flask-WhooshAlchemy @views.route('/search', methods=['GET']) def search(): query = request.args['query'] results = [] def _model_search(m): return…
Mihai Zamfir
  • 2,167
  • 4
  • 22
  • 37