How can I use Elasticsearch for intra-site search after it is installed on windows?

Source: Internet
Author: User
Tags kibana logstash
I have a wnmp environment on Windows 10. now I have installed Elasticsearch2.3.3 to try it out (for intra-site search). The following is the process record of installing Elasticsearch2.3.3 after referring to some Baidu documents: {code ...} question: 1. in addition to the plug-ins installed above, what else are there... I have a wnmp environment on windows 10. now I have installed Elasticsearch 2.3.3 to try it out (for intra-site search). The following is a reference to some Baidu documents, process record for installing Elasticsearch 2.3.3:

Install Elasticsearch on windows 10. Procedure 1. install and configure Java JDK1. download: http://download.oracle.com/otn-pub/java/jdk/8u92-b14/jdk-8u92-windows-x64.exe2 Set environment variables: (1) click the new button under System Variables. variable name: JAVA_HOME variable value: C: \ Program Files \ Java \ jdk1.8.0 _ 92 (2) follow the same method to create the system variable classpath variable name: classpath variable value :.; % JAVA_HOME % \ lib; % JAVA_HOME % \ lib \ tools. jar (3) add the following variable values to the end of the existing system variable path; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin3. check whether java-verison or javac-version 2 has been installed successfully. install and configure Elasticsearch1. download: https://www.elastic.co/downloads/elasticsearch // I downloaded 2.3.3 version 2, decompress to d: \ elasticsearch-2.3.3 directory 3, configure Elasticsearch (1) configure config \ elasticsearch. yml file cluster. name: lgs-esnode.name: node-1 (2) configure bin \ elasticsearch. in. bat file set ES_MIN_MEM = 4 gset ES_MAX_MEM = 4g4, run service double-click bin \ elasticsearch. bat run 3. install the Elasticsearch plug-in 1. install the head plug-in (the head is the ES web console .) Bin/plugin. bat install mobz/elasticsearch-head after installation, enter http://localhost:9200 /_ Plugin/head/Run 2. install the kibana plugin (1 ): https://www.elastic.co/downloads/kibana (2) decompress to d: \ kibana-4.5.1-windows Directory (3) configure config \ kibana. yml file elasticsearch. url :" http://localhost:9200 "(4) bin \ kibana. bat // start kibana (5) browser input http://localhost:56013 And install the sense plug-in (sense is the debugging tool of ES, which can easily send various requests to the ES cluster through a browser .) Bin/kibana plugin -- install elastic/sense4. install the marvel plug-in (1) install Marvel to Elasticsearchbin/plugin install license // install the license plug-in bin/plugin install marvel-agent (2) install Marvel to Kibanabin/kibana plugin -- install elasticsearch/marvel/latest (3) start Elasticsearch and Kibanabin/elasticsearchbin/kibana (4) input: http://localhost:5601/app/marvel5 Install the elasticsearch-analysis-ik plug-in (ik is a Chinese word segmentation plug-in .) A. install maven before installing elasticsearch-analysis-ik (1) Download maven: https://maven.apache.org/download.cgi (2) decompress to C: \ Program Files (x86) \ apache-maven-3.3.9 (3) new environment variable: variable name: MAVEN_HOME variable value: C: \ Program Files (x86) \ apache-maven-3.3.9 (4) Add maven's bin PATH in PATH; % MAVEN_HOME % \ bin (5) input mvn-v at the command prompt, information is displayed successfully. B. install the elasticsearch-analysis-ik plug-in (1) Download the compressed package https://github.com/medcl/elasticsearch-analysis-ik (2) decompress the package to d: \ elasticsearch-analysis-ik-master (3) cd d: \ elasticsearch-analysis-ik-master (4) mvn package // package with maven (5) create an ik folder under both the elasticsearch-2.3.3 \ config and the elasticsearch-2.3.3 \ plugins directory (6) package the generated zip file D: \ elasticsearch-analysis-ik-master \ target \ releases \ elasticsearch-analysis-ik-1.9.3.zip copy to plugins/ik and unzip. (7) place the dictionary (content in D: \ elasticsearch-analysis-ik-master \ config) in the config/ik Directory (8) and restart es to test http://localhost:9200 /_ Analyze? Analyzer = ik & pretty = true & text = java % E9 % AB % 98% E7 % BA % A7 % E5 % B7 % A5 % E7 % A8 % 8B % E5 % B8 % 88

Problem:
1. in addition to the plug-ins installed above, what other commonly used plug-ins need to be installed?
2. now I have taken the last step of the above installation record. what should I do next and how should I do it?

Reply content:

I have a wnmp environment on windows 10. now I have installed Elasticsearch 2.3.3 to try it out (for intra-site search). The following is a reference to some Baidu documents, process record for installing Elasticsearch 2.3.3:

Install Elasticsearch on windows 10. Procedure 1. install and configure Java JDK1. download: http://download.oracle.com/otn-pub/java/jdk/8u92-b14/jdk-8u92-windows-x64.exe2 Set environment variables: (1) click the new button under System Variables. variable name: JAVA_HOME variable value: C: \ Program Files \ Java \ jdk1.8.0 _ 92 (2) follow the same method to create the system variable classpath variable name: classpath variable value :.; % JAVA_HOME % \ lib; % JAVA_HOME % \ lib \ tools. jar (3) add the following variable values to the end of the existing system variable path; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin3. check whether java-verison or javac-version 2 has been installed successfully. install and configure Elasticsearch1. download: https://www.elastic.co/downloads/elasticsearch // I downloaded 2.3.3 version 2, decompress to d: \ elasticsearch-2.3.3 directory 3, configure Elasticsearch (1) configure config \ elasticsearch. yml file cluster. name: lgs-esnode.name: node-1 (2) configure bin \ elasticsearch. in. bat file set ES_MIN_MEM = 4 gset ES_MAX_MEM = 4g4, run service double-click bin \ elasticsearch. bat run 3. install the Elasticsearch plug-in 1. install the head plug-in (the head is the ES web console .) Bin/plugin. bat install mobz/elasticsearch-head after installation, enter http://localhost:9200 /_ Plugin/head/Run 2. install the kibana plugin (1 ): https://www.elastic.co/downloads/kibana (2) decompress to d: \ kibana-4.5.1-windows Directory (3) configure config \ kibana. yml file elasticsearch. url :" http://localhost:9200 "(4) bin \ kibana. bat // start kibana (5) browser input http://localhost:56013 And install the sense plug-in (sense is the debugging tool of ES, which can easily send various requests to the ES cluster through a browser .) Bin/kibana plugin -- install elastic/sense4. install the marvel plug-in (1) install Marvel to Elasticsearchbin/plugin install license // install the license plug-in bin/plugin install marvel-agent (2) install Marvel to Kibanabin/kibana plugin -- install elasticsearch/marvel/latest (3) start Elasticsearch and Kibanabin/elasticsearchbin/kibana (4) input: http://localhost:5601/app/marvel5 Install the elasticsearch-analysis-ik plug-in (ik is a Chinese word segmentation plug-in .) A. install maven before installing elasticsearch-analysis-ik (1) Download maven: https://maven.apache.org/download.cgi (2) decompress to C: \ Program Files (x86) \ apache-maven-3.3.9 (3) new environment variable: variable name: MAVEN_HOME variable value: C: \ Program Files (x86) \ apache-maven-3.3.9 (4) Add maven's bin PATH in PATH; % MAVEN_HOME % \ bin (5) input mvn-v at the command prompt, information is displayed successfully. B. install the elasticsearch-analysis-ik plug-in (1) Download the compressed package https://github.com/medcl/elasticsearch-analysis-ik (2) decompress the package to d: \ elasticsearch-analysis-ik-master (3) cd d: \ elasticsearch-analysis-ik-master (4) mvn package // package with maven (5) create an ik folder under both the elasticsearch-2.3.3 \ config and the elasticsearch-2.3.3 \ plugins directory (6) package the generated zip file D: \ elasticsearch-analysis-ik-master \ target \ releases \ elasticsearch-analysis-ik-1.9.3.zip copy to plugins/ik and unzip. (7) place the dictionary (content in D: \ elasticsearch-analysis-ik-master \ config) in the config/ik Directory (8) and restart es to test http://localhost:9200 /_ Analyze? Analyzer = ik & pretty = true & text = java % E9 % AB % 98% E7 % BA % A7 % E5 % B7 % A5 % E7 % A8 % 8B % E5 % B8 % 88

Problem:
1. in addition to the plug-ins installed above, what other commonly used plug-ins need to be installed?
2. now I have taken the last step of the above installation record. what should I do next and how should I do it?

1. Elasticsearch plug-ins are too many. because it is java, many great gods write a lot of things. it is estimated that you still need the pinyin plug-in for fuzzy search and pinyin search.
2. if your label is Larvae, then you also need to install Larvae ES plug-in, you can use native https://github.com/elastic/elasticsearch-php or other developers encapsulated. Then write the data into ES and construct various search statements. ..

Kibana does not need to be installed. This is used with logstash for the log system. Sense depends on the situation. if it is not a cluster, there is no need to use it. a head or hd is enough.

  • The first is data index, which involves synchronization between the database and es. if mysql is used, you can uselogstashOfjdbcPlug-in.mongodb, You can usemongo-connector. Of course, if your data volume is small, you can directly save the data to es without mysql or mongo.

  • Es has clients such as php and python. you can develop a set of APIs based on this. the front-end submits the search query to the API for query, and the data is returned to the front-end.

  • There are still some pitfalls involved in Chinese search. you can search for them on github.medclHe is an Elasticsearch official Chinese employee and should be mainly responsible for Chinese. he has added many useful Chinese ins for Elasticsearch.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.