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

Python based search engine or Elastic Search

In our project, we want to incorporate a search engine like ES/Solr for various use cases. Our backend stack is Python/Django. ES has a Java dependency. Is it advisable to use more popular and robust search engines like Elastic Search/Solr or use…
Rima
  • 199
  • 1
  • 7
0
votes
1 answer

I need help implementing a keyword search in Flask with Flask-msearch

I am using version 3.9 of python and attempting to create a keyword search where a user can enter a string of keywords and that string can be queried against the database containing strings. There are no errors in compilation and everything runs but…
Ali Khabib
  • 25
  • 2
0
votes
0 answers

Whoosh index file overwritten when I open it to add new documents

I have a problem with Whoosh. I want to create an index in different moments, because the query to extract data is heavy. I fixed almost all the problems, but I can't get over the problem that every time I reopen the index to add new documents, the…
0
votes
1 answer

Why there is a error message Exception: This file is already closed

1.I was trying to write a python code to get all contents of files in each subfolder and create a index for each content (file contents). All the contents for each file can be get successfully. However, when I run the code, it always shows an error…
Jay Park
  • 308
  • 1
  • 6
  • 14
0
votes
1 answer

Fuzzy search with Python Whoosh (Rank/Score Direct Hits higher than Fuzzy Hits)

I am having trouble with Fuzzy Queries giving higher relevance to Fuzzy Hit terms than Direct Match on Python Whoosh. Is there any existing options available within the library to score direct matches higher? or I have to separately code it (i.e.do…
0
votes
1 answer

Instant search with Whoosh - Index and search a MySQL table using Whoosh outputing JSON results

I want to index a MySQL table using Whoosh and create an instant search page, so I need the results of the Whoosh search to be in JSON. Is there a script or a project that implements this already? I've tried searching but I only find Haystack search…
seanieb
  • 1,196
  • 2
  • 14
  • 36
0
votes
1 answer

Whoosh: How to get search excerpts as a list

From the Whoosh documentation I can get matched search terms with some context with: results = mysearcher.search(myquery) for hit in results: print(hit["title"]) # Assume "content" field is stored print(hit.highlights("content")) I'd…
Alexander Soare
  • 2,825
  • 3
  • 25
  • 53
0
votes
0 answers

How to implement a search bar on Flask web application?

I am trying to implement a search bar on my Flask web application. As I am a beginner in web programming, I have to search around for ways to do it and I saw the option to use flask_whooshalchemy. However, I have also seen people commenting about…
snigcode
  • 365
  • 4
  • 17
0
votes
2 answers

Pass other functions returned value to QtableView in PYQt5

I am stuck on the last bit of the code to create a small search engine. So far I have been able to let users do some actions as select a folder where the files to search are stored, create an index, search for keyword and then export excerpt of the…
0
votes
1 answer

Whoosh IndexingError: Writer is closed

I am using the code, and I am getting as error message This writer is closed I am using whoosh and python. I am fetching data from a json file and I then iterate with a loop for creating the search engine index. from whoosh.fields import…
0
votes
2 answers

How do I make my search case insensitive?

I have a web app that searches through a few databases, some of the data saved is in uppercase and some a mix of upper and lowercase, however when searching the keyword I want it to ignore the case and just bring up results that match the word. for…
0
votes
1 answer

Whoosh Concurrency Search

I have an index (size = 3.5 GB) of 5 million small documents indexed using Whoosh. As my documents have only name and content, therefore my Schema is very simple and has only two fields: id and content. schema = Schema(name = ID(stored=True), …
0
votes
1 answer

My output is not giving the documents matched for the query

I have a folder called pads in which there are six notepad documents with some text in each of them. Am trying to build a whoosh code that will return the appropriate document for the query string but am getting output as runtime, help…
ravijprs
  • 39
  • 1
  • 4
0
votes
2 answers

When trying to work with whoosh am getting this error "IndexError: list index out of range"?

I have a folder called "pads" in which i have created 6 notepad documents(1.txt,2.txt..so on..6.txt),am trying to execute below code and getting following error import os from whoosh.index import create_in from whoosh.fields import Schema, TEXT,…
ravijprs
  • 39
  • 1
  • 4
0
votes
1 answer

Why is whoosh Search performing worse than tfidfvectorizer in sklearn?

I implemented a basic (almost all default options) TF-IDF vectorizer (sklearn) based search program to search for some documents based on user query. I also tried to implement the same using Whoosh in python. While the standalone tfidfvectorizer…