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

How to use Django Haystack whoosh search field in multiple application templates

I have implemented a working Django 1.6 haystack/whoosh search field following Mike Hibbert's tutorial:https://www.youtube.com/watch?v=B-n6_m66TmA. The implementation works in a twitter bootstrap search field in the navbar in the url 'search'. I'd…
Kewin Rozz
  • 41
  • 6
0
votes
2 answers

Full-text content searching for Django-CMS

Probably the best way to integrate search with the Django-CMS is Haystack. There is a search_indexes.py snippet at django-cms documentation. Does anybody managed to get this up and running? I'm using whoosh as the search engine. Haystack works fine…
Daria
  • 753
  • 7
  • 22
0
votes
1 answer

How could i use another weighting model in whoosh?

If i want to use the Language Model as the weighting model,how could i do.The default function is BM-25 model,And i have not find the Language model in scoring class,It really confused me.
hellolee
  • 43
  • 1
  • 1
  • 6
0
votes
0 answers

Some rows lost when creating Whoosh index in Python

I'm trying to load data into Whoosh search engine. There are ~7 000 000 rows to insert. First I get all the rows with psycopg2 from PostgreSQL database, then I insert them with writer.add_document(some_data_here) into Whoosh index. My writer object…
adamczi
  • 343
  • 1
  • 7
  • 24
0
votes
1 answer

How to use whoosh to get the term frequences in all collections?

def scorer(self, searcher, fieldname, text, qf=1): """Returns an instance of :class:`whoosh.scoring.Scorer` configured for the given searcher, fieldname, and term text. """ raise NotImplementedError(self.__class__.__name__) i do…
hellolee
  • 43
  • 1
  • 1
  • 6
0
votes
1 answer

Whoosh Proxmity search

I would like to know, how to use proximity search with the whoosh. I have read the documentation of the whoosh. It was written in the document that by using class whoosh.query.Phrase(fieldname, words, slop=1, boost=1.0, char_ranges=None) once can…
Abhishek Kaushik
  • 93
  • 1
  • 2
  • 12
0
votes
2 answers

Flask-WhooshAlchemy raises NameError: name 'unicode' is not defined

Trying to create a search in a Flask app with WhooshAlchemy, but got an error. class Employee(db.Model): __searchable__ = ['first_name', 'patronymic', 'last_name', 'position', 'office', 'birthday'] id = db.Column(db.Integer,…
Su Kiragami
  • 21
  • 1
  • 7
0
votes
1 answer

Whoosh_search unexpected keyword 'like'

I'm using flask_whooshalchemy and trying to do partial matches on texts. In the docs for flask_whooshalchemy it mentions using a 'like' parameter. So I have this query: result = Property.query.whoosh_search(search_str, like=True).filter( …
Scragglez
  • 123
  • 1
  • 11
0
votes
0 answers

python package whoosh- Nameerror: name 'unicode' is not defined

I'm New at programming. Need help. I tried to use python package whooshalchemy but i get a NameError: name 'unicode' is not defined. I dont understand the error. I really need help. @app.route('/search', methods =['GET','POST']) def search(): …
0
votes
0 answers

How to implement the BM25F with a set of corpus and queries in Python using Whoosh indexing tool?

So, I am working on a search engine. We have two indexed corpora and some relevant queries based on the corpora. After running the query , we are getting top 10 results. Now I am trying to rank/score the results according to their relevance. I was…
0
votes
1 answer

Fuzzy search with Python Whoosh

I would like to realize a fuzzy search with Python Whoosh but I don' get it. I've tried to make the fuzzy search possible with the help of NGRAMWORDS. Here is my schema: schema = Schema(id=ID(stored=True), name=NGRAMWORDS(minsize=2,…
kladderradatsch
  • 596
  • 5
  • 18
0
votes
2 answers

Whoosh search results not Json serializable

How do I make the results from Whoosh search results JSON serializable so I can return that data back to the client? Whoosh search output (list of python objects): [
user3226932
  • 2,042
  • 6
  • 39
  • 76
0
votes
0 answers

Search engine for python on shared hosting

I'm currently in the process of building a website in which the user can query a book name and get a result from a mysql database of around 30,000 books. I've finished building the database and now i'm looking for a good search engine implementation…
omer
  • 69
  • 7
0
votes
2 answers

How to override SearchForm method in Django Haystack

I aim to have my Django Haystack Whoosh search return all results if no results where found. In Haystack documentation I read that I can override the no_query_found method (see below) in my SearchForm to do this. But I have no idea how. Any…
Tuxedo Joe
  • 822
  • 6
  • 18
0
votes
0 answers

Django+Haystack+Whoosh, no models being indexed, no results returned in search

I have a haystack search implementation using the whoosh backend in django 1.10. I've followed the "Getting Started" documentation page and have implemented everything I can see there, however, when I run ./manage.py update_index It will show…
user7929218