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
4
votes
1 answer

Document comparison / similarity using Whoosh Python Search Library

How do I get a similarity measure of a document using Whoosh? I want to create a "Related" feature that ranks other previously indexed documents that have a high similarity to a document. Do I input the document as a long query string? Do I add…
seanieb
  • 1,196
  • 2
  • 14
  • 36
4
votes
1 answer

Django-haystack returns results with "simple" backend, but not with "whoosh"

I'm trying to integrate a search with django-haystack, While it works well with the "sample" backend, when replacing the backend with whoosh it always returns 0 results. settings.py: HAYSTACK_DEFAULT_OPERATOR = 'AND' HAYSTACK_SITECONF =…
yprez
  • 14,854
  • 11
  • 55
  • 70
4
votes
0 answers

How to achieve sentence level proximity in elastic search?

Lets say I have bunch of documents and each document is list of sentences. Now when I enter a query, the words in the query which are exactly in a single sentence (out of order) should rank higher. So the thing is if all keywords exist in a sentence…
4
votes
0 answers

How to use WordNet thesaurus in Whoosh

I'm new to Whoosh and I want to expand search queries using synonyms, similar to what Elasticsearch does with its Synonym Token Filters. The most similar thing I could find is the Thesaurus class from whoosh.lang.wordnet. I've already downloaded and…
acarasimon96
  • 293
  • 2
  • 8
4
votes
1 answer

Search across multiple indexes at once in Whoosh

I have a few indexes located in the same directory as part of a storage object. from whoosh.filedb.filestore import FileStorage storage = FileStorage("../indexdir") ix_1 = storage.open_index(indexname='ind_1') ix_2 =…
Yasmina
  • 51
  • 3
4
votes
2 answers

Haystack Whoosh not indexing everything

I am using Haystack v1.0 and Whoosh v1.8.1 to build a customized search engine for my website. Everything works beautifully but the problem is that I get no results for a lot of entries in my indexed models. For e.g. - I have four registered…
Vikesh
  • 2,018
  • 6
  • 23
  • 33
4
votes
1 answer

Django Haystack Rebuild Index

I was reading the 'Getting Started' guide of Haystack and tried to implement Whoosh backend for my website with Haystack. I was successful in setting up the whole project and I can also see the search box on my search.html template. I am unable to…
Vikesh
  • 2,018
  • 6
  • 23
  • 33
4
votes
1 answer

Django 2.0 haystack whoosh update index, rebuild index throw error

I am using django 2.0 with haystack+whoosh as a search. I configured as it is said in the documentation. Occurred problem is when i run ./manage.py rebuild_index it shows this error: Traceback (most recent call last): File "./manage.py", line 15,…
Zorig
  • 585
  • 1
  • 10
  • 26
4
votes
1 answer

Python Whoosh - Combining Results

Thanks for taking the time to answer this in advance. I'm relatively new to both Python (3.6) and Whoosh (2.7.4), so forgive me if I'm missing something obvious. Whoosh 2.7.4 — Combining Results Error I'm trying to follow the instructions in the…
juicyfruit
  • 101
  • 1
  • 5
4
votes
1 answer

haystack multiple field search

Hi i m using haystack with a woosh as search engine: my model looks as follows class Person(models.Model): personid = models.IntegerField(primary_key = True, db_column = 'PID') firstname = models.CharField(max_length = 50, db_column =…
jassinm
  • 7,323
  • 3
  • 33
  • 42
4
votes
2 answers

whoosh exact match for a phrase

I want to find a phrase in a document, I've used the codes in the quick start. >>> from whoosh.index import create_in >>> from whoosh.fields import * >>> schema = Schema(title=TEXT(stored=True), path=ID(stored=True), content=TEXT) >>> ix =…
daniel_zeng
  • 43
  • 1
  • 5
4
votes
3 answers

Show all hits in results() object Whoosh

I'm newbie in python and whoosh so perhaps is because of that i'm having difficults to print all the hits returned after a search. Here's my code: from whoosh.qparser import QueryParser with ix.searcher() as searcher: query =…
Claudia Guirao
  • 335
  • 1
  • 3
  • 10
4
votes
2 answers

Generating search term suggestions with Whoosh?

I've got a set of documents in a Whoosh index, and I want to provide a search term suggestion feature. So If you type "pop", some suggestions that could come up might be: popcorn popular pope Poplar Film pop culture I've got the terms that should…
babbageclunk
  • 8,523
  • 1
  • 33
  • 37
4
votes
2 answers

"Query has no attribute 'whoosh_search" AttributeError in Flask + Whoosh + SQLAlchemy

I have a strange problem with Flask-WhooshAlchemy as well as Flask-Whooshee that resembles these issues: https://github.com/gyllstromk/Flask-WhooshAlchemy/issues/13 https://github.com/miguelgrinberg/flasky/issues/8 I started off with…
szxk
  • 1,769
  • 18
  • 35
4
votes
1 answer

Whoosh - accessing search_page result items throws ReaderClosed exception

Following is a simple pagination function. from whoosh import index def _search(q): wix = index.open_dir(settings.WHOOSH_INDEX_DIR) term = Term("title", q) | Term("content", q) page_id = 1 with wix.searcher() as s: return…
altunyurt
  • 2,821
  • 3
  • 38
  • 53
1 2
3
24 25