Search Engine with PHP & Elasticsearch

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

The code won't work as expected. It'll only search the body field, as the the second "match" on the query array will override the first. It should be something like this:

'should' => [ ['match' => ['title' => $q]], ['match' => ['body' => $q]] ]

feldinho
Автор

Thank you once again... This is the second time I've watched this video, because I needed to setup a new elasticsearch server 2 years later

MrKristian
Автор

Search Engine with PHP & ElasticSearch

codecourse
Автор

Alex that was excellent, I'm hoping my NAS will get  that soon as a package for me to use, I have a Synology NAS which is very good for my personal projects. This is a video I will definitely be re-visiting.

nitram_nosnibor
Автор

Thanks for creating this tutorial. This really helpful. I want to know about function_score in Elasticsearch and How do we implement it in php.

umerjaved
Автор

Extremely useful tutorial! Thank's for sharing.

MartinLojek
Автор

I have different API stored in the project that using the same name of the file, which is vendor/autoload.php, in this case, how do I add autoload.php for elasticsearch in the project?

mk
Автор

Nice tutorial! Question: how would you run elasticsearch on a web hosting server? Thanks.

DanielSzewczyk
Автор

Can you do a similar tutorial for laravel?

elvisadjei
Автор

Any idea how to push the max hits above 10? I know there are "from" and "size" parameters in elasticsearch, but not sure how to apply those within the multideminsional array

joshua_tobler
Автор

You are the MAN ! Thanks a lot. It was very helpful. Just what I was looking for.. Cheers :)

kashyapbhansali
Автор

great tutorial. It would be great if you publish one with the filters.

artuc
Автор

Love your channel. When to use Elasticsearch or pure SQL? My php is weak at best. A developer is creating a webapp, basically CRM, for me and we are just about at the creating a search function phase. When does Elasticsearch become preferred over building an sql string based on the variables?

trafferz
Автор

Thank you so much. Perfect tutorial! I wish all all YT tutorials were like this.

jovanperovic
Автор

thanks very much sir, you save my life :)
I have one other question : now I work on a local computer (windows10) , how to move my indexes to the hosting server ?

doooom
Автор

What does the css file look like for this? Sorry, I am new to this!

MsLemons
Автор

I followed your tutorial but I could not create an index as you did in add.php example.
Is there any source to check with the syntax

arulmuruganramalingam
Автор

Great video. Many thanks.
But how do you come up to add "body" before your bool query?

WarrioW
Автор

The cursor freaked me out in the beginning HAHAHAHAH

BlueMrDragoN
Автор

My question pertains to the html form in relation to the php code. I have written out an html form just how the video shows and included the php code that the video says too. I am creating these files on a mac that is separate from the server that I have the instance of elastic search set up on. When I open up the search file in the browser, it displays all the php code and then the form and when I save it with a .php extension the form doesn't show and all the code is displayed. My question is, is this happening because these files aren't on the same machine as elastic search or is there a trick that I missed. I've worked with html before but don't have a lot of experience with integrating php, so some guidance would be much appreciated. 

Thank you,
Austin Harmon

budski