Try a full-text search of local files using Fess. Open Source Full Text Search Server Fess
There is no particular reason, but except for the JDK, download the zip and install it. Here when installing from rpm.
The version of CentOS to install to.
CentOS Linux release 7.9.2009 (Core)
Since there is Document, there was nothing particularly clogged up. Just try it, so run it all in your home directory.
sudo yum install java-11-openjdk-devel
Install the following files, compile and see if it works
HelloWorld.java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
System.out.println(System.getProperty("java.version"));
}
}
javac HelloWorld.java
java HelloWorld
Download Elasticsearch Free | Get Started Now | Elastic | ElasticDownload from. The latest at this point is 7.10.1.
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.1-linux-x86_64.tar.gz
tar -zxvf elasticsearch-7.10.1-linux-x86_64.tar.gz
Get the latest code for fess from github. Releases · codelibs/fess · GitHub The latest at this point is 13.10.2.
wget https://github.com/codelibs/fess/releases/download/fess-13.10.2/fess-13.10.2.zip
unzip fess-13.10.2.zip
Change the directory name.
mv elasticsearch-7.10.1 elasticsearch
mv fess-13.10.2 fess
Reference: Install
Install the Fess plugin on Elasticsearch. When I checked github, the latest was 7.10.0. Tags · codelibs/elasticsearch-analysis-fess · GitHub
./elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-analysis-fess:7.10.0
./elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-analysis-extension:7.10.0
./elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-configsync:7.10.0
./elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-dataformat:7.10.0
./elasticsearch/bin/elasticsearch-plugin install org.codelibs:elasticsearch-minhash:7.10.0
Recognize ./elasticsearch/data/config/
.
Added settings for accessing Fess.
The path is a full path.
./elasticsearch/config/elasticsearch.yml
configsync.config_path: /path/to/elasticsearch/data/config/
He said that he will specify a boot option to connect to the Elasticsearch cluster with Fess.
./fess/bin/fess.in.sh
ES_HTTP_URL=http://localhost:9200
FESS_DICTIONARY_PATH=/path/to/elasticsearch/data/config/
Start it and check if it can be accessed with a browser.
./elasticsearch/bin/elasticsearch
./fess/bin/fess
Check if it can be accessed with http: // [server IP]: 8080 http: // [server IP]: 8080/admin is the admin login screen. ID: admin PASS: admin
If you cannot access it, check around the firewall.
Reference: File Crawl
This time, the files are placed under / var/fess
so that the files under this directory can be searched in full text.
Log in to the management screen and register as follows in the left menu Crawler-> File System
.
Name: Appropriate Path file:/var/fess / Path to crawl file: /var/fess/.*
I want to run it immediately, so click "Default Crawler" in System-> Scheduler
and click the" Start Now Button "to crawl.
You can check the crawl status and results with System Information-> Crawl Information
, so check if the data is available when finished.
Check if you can search from System Information-> Search
.
Reference: Remove document from Fess index – with a Christian Wife
Enter "*: * "in
System Information-> Search` to search and delete with the delete button at the bottom of the screen.
Recommended Posts