Elasticsearch Problem

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Totoro
Posts: 6
Joined: Tue Jul 18, 2017 8:27 am

Elasticsearch Problem

Post by Totoro » Thu Jul 20, 2017 11:02 am

Hi Thorsten
I installed your phpMyFAQ and it is working very well now, It’s wonderful.
Recently, I met a problem when I want to add the Elasticsearch for phpMyFAQ.
I have read other articles about this problem, and I set an index for phpMyFAQ successful by your direct。
But I don't know how to build a document for the index, Elasticsearch is strange to me, could you please tell me how to build the document for the index.
I apologize if the questions are basic.
Thank you so much. :doh:
Totoro
You do not have the required permissions to view the files attached to this post.

Thorsten
Posts: 14431
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Elasticsearch Problem

Post by Thorsten » Thu Jul 20, 2017 12:43 pm

Hi,

just click on the "create index" in the upper right of the Elasticsearch configuration page and then on "full import". That's all.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Totoro
Posts: 6
Joined: Tue Jul 18, 2017 8:27 am

Re: Elasticsearch Problem

Post by Totoro » Fri Jul 21, 2017 7:39 am

Hi Thorsten
Thanks for your reply.
Now, in my elasticsearch.php, only have the follow information:
<?php
$PMF_ES['hosts'] = ['127.0.0.1:9200'];
$PMF_ES['index'] = 'phpmyfaq';
$PMF_ES['type'] = 'faqs';
I want to know how to add the documents for the search, I need to build a file for docement or add the documents in the elasticsearch.php?
In my phpMyFAQ, it's showing :
Search Statistics
Documents
0
Storage size
318 Bytes
About the Document, do you have a demo?
Thank you
Totoro. :oops:

Thorsten
Posts: 14431
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Elasticsearch Problem

Post by Thorsten » Fri Jul 21, 2017 8:21 am

Hi,

just click on the buttons in the upper right corner in the Elasticsearch configuration and everything will be created.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Totoro
Posts: 6
Joined: Tue Jul 18, 2017 8:27 am

Re: Elasticsearch Problem

Post by Totoro » Mon Jul 24, 2017 2:04 am

Hi Thorsten
It is my language problem, now it works well.
Thank you so much.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests