Elasticsearch Problem

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

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

Elasticsearch Problem

Post by Totoro »

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: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Elasticsearch Problem

Post by Thorsten »

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: 9
Joined: Tue Jul 18, 2017 8:27 am

Re: Elasticsearch Problem

Post by Totoro »

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: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Elasticsearch Problem

Post by Thorsten »

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: 9
Joined: Tue Jul 18, 2017 8:27 am

Re: Elasticsearch Problem

Post by Totoro »

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