swish-search command not found

In this troubleshooting guide we learn how to fix swish-search command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

swish-search: command not found

or when using sudo you get the following error message

sudo: swish-search: command not found

Solutions to swish-search: command not found

How To Fix swish-search: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu swish-search is provided by swish-e package.

swish-e is:

SWISH-Enhanced is a fast, powerful, flexible, and easy to use system for indexing collections of HTML Web pages, or any XML or text files like Open Office Documents, Open Document files, emails, and so on.

Key features:

  • Quickly index a large number of text, HTML, and XML documents
  • Use filters to index any type of files such as PDF, OpenOffice, DOC, XLS, PPT, MP3.
  • Includes a web spider for indexing remote documents over HTTP
  • Can use an external program to supply documents including records from a relational database.
  • Word stemming, soundex, metaphone, and double-metaphone indexing for fuzzy searching
  • Powerful Regular Expressions to select documents for indexing or exclusion
  • Limit searches to parts of documents such as certain HTML tags or to XML elements.
  • Index file is portable between platforms.
  • A Swish-e library is provided to allow embedding Swish-e into your applications for very fast searching.

You’ll find ready to use examples for indexing the Debian documentation, PDF, OpenOffice and MSOffice files, whole Maildir, and more.

To fix this problem, we can install more using the command below.

sudo apt-get -y install swish-e

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install swish-e.

sudo apt -y install swish-e

Or if you have aptitude installed you can use the following command.

sudo aptitude install swish-e

Summary

In this tutorial we learn how to fix swish-search command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.