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

How to devise your own scoring function by taking additional fields value in Whoosh

Whoosh is known to let you make your own scoring function. Here what I intend to do is to score a text based on frequency plus a value which is already indexed as part of the fields. I have no problem scoring based on the former frequency…
pdubois
  • 7,640
  • 21
  • 70
  • 99
3
votes
2 answers

Django haystack doesn't add to Solr index. [Works with whoosh, fails with Solr]

During development I used whoosh as a backend, and now want to switch to solr. I installed solr, changed the settings, to HAYSTACK_SEARCH_ENGINE, and HAYSTACK_SOLR_URL. Now when I try to update or rebuild the index it fails with Failed to add…
agiliq
  • 7,518
  • 14
  • 54
  • 74
3
votes
1 answer

How to filter results using django-haystack SearchQuerySet?

I'm attempting to use django-haystack + whoosh in my Django application. My index class looks like this class ArticleIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) title =…
3
votes
4 answers

Haystack / Whoosh Index Generation Error

I'm trying to setup haystack with whoosh backend. When i try to gen the index [or any index command for that matter] i receive: TypeError: Item in ``from list'' not a string if i completely remove my search_indexes.py i get the same error [so i'm…
Keith Fitzgerald
  • 5,651
  • 14
  • 43
  • 58
3
votes
1 answer

Haystack search is not working with autocomplete

I am trying to use django-haystack for search functionality in our product. When user enters a any search keyword(i.e. 'computer'), it should search for this keyword against multiple fields. E.g. when a user enters "Computer" it should find the…
Nikhil N
  • 4,507
  • 1
  • 35
  • 53
3
votes
0 answers

Wildcard support in search in haystack with whoosh

Could anyone help me with implementing the wildcard search in haystack with whoosh. I have tried to search over google but couldn't found any concrete example of it. I want to have following behavior over search for our end user. When user enters…
Nikhil N
  • 4,507
  • 1
  • 35
  • 53
3
votes
1 answer

Whoosh Issue

I'm working through the Whoosh Quick start guide, and everything seems to be working except that I can't quite replicate the results in the guide. I'm up to the bit about the Searcher object and when I run the code print(results[0]) I don't get…
Jonathan
  • 137
  • 8
3
votes
1 answer

slow whoosh searches

I am getting close to 1000 search results in 15 seconds after having created a whoosh index with a simple schema and indexed 1.5 million records. schema = Schema(tax_id=STORED, name=TEXT(stored=True)) The size of MAIN*.seg file is about 190 Mb.…
Abhi
  • 6,075
  • 10
  • 41
  • 55
2
votes
1 answer

Django haystack serving incorrect searched URLS

Im using haystack to search my django website, it does this perfectly. However on my results page the links do not work. Within my template i am using the code: {{ result.object.title }} Within my…
Joseph Roberts
  • 569
  • 3
  • 10
  • 29
2
votes
1 answer

Django and haystack with whoosh

I've set up django with haystack but im having a few problems. I have a line in my search_indexes.py that says body = indexes.TextField(model_attr='body') This corresponds to the line in my models.py that says body = models.TextField() Im getting…
Joseph Roberts
  • 569
  • 3
  • 10
  • 29
2
votes
2 answers

How to search in all django models with Haystack and Whoosh?

I'm using django and haystack with whoosh and I have several questions about them: 1) When I attempt to search smth I should select all models which has indexed in whoosh. How can I set system to find values everywhere (on all models)? 2) I have…
kurd
  • 467
  • 1
  • 10
  • 18
2
votes
0 answers

Reuse file handle in python ThreadPoolExecutor

The background to my question is the following: I have a search index implemented in whoosh, and I want to get the rankings for a batch of queries. I want to speed this up by handling multiple queries at a time, using ThreadPoolExecutor.map. In…
Josef
  • 304
  • 2
  • 14
2
votes
0 answers

whoosh index with django-haystack: fast under python 2.7 but really slow under python 3.7

Using django-haystack with whoosh 2.7.4: there is a huge performance difference under python 2.7 and python 3.7. The virtual envs have same code and data, index size about 200M. A basic simple search takes about 0.1 sec under python 2.7, but takes…
user1620145
  • 101
  • 2
2
votes
2 answers

Whoosh locked statement while writing index

I a trying to build an index of parliamentary transcripts that I have already split by page number and converted in txt. I am using the last version of whoosh to build it up but it gives me lock error. This is the code: import os from whoosh import…
2
votes
1 answer

Python Website Full-Site Search

I'm wondering if anyone has any recommendations for a Python full-text search engine similar to mnogosearch. I'm trying to get it to function like Mnogosearch, but not sure how that compares to other options (if there are better options out there).…
Joe J
  • 9,985
  • 16
  • 68
  • 100