This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen [::]:80; | |
root /usr/share/nginx/html; | |
index index.php index.html index.htm index.nginx-debian.html; | |
server_name lol.com; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class Pool | |
* @author dılo sürücü <[email protected]> | |
* example pool design pattern | |
*/ | |
Class Pool | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author dılo sürücü <[email protected]> | |
* php pure from structure basic middleware example | |
* | |
*/ | |
Class MiddlewareFirst | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET http://localhost:9200/accounts/person/_search | |
Content-Type: application/json | |
{ | |
"query": { | |
"multi_match": { | |
"query": "backend dılo", | |
"fields":["*"], | |
"minimum_should_match":1, | |
"slop":1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once "vendor/autoload.php"; | |
use Elasticsearch\ClientBuilder; | |
$client = ClientBuilder::create()->build(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST http://localhost:9200/accounts/person/_search | |
Content-Type: application/json | |
{ | |
"query": { | |
"query_string": { | |
"query":"lahmac*", | |
"fields":["name","lastname","job_description"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST http://localhost:9200/accounts/person/_search | |
Content-Type: application/json | |
{ | |
"query": { | |
"bool": { | |
"must": { | |
"multi_match": { | |
"query": "sevda", | |
"fields": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST http://localhost:9200/accounts/person/_search | |
Content-Type: application/json | |
{ | |
"query": { | |
"bool": { | |
"must": { | |
"multi_match": { | |
"query": "sevda", | |
"fields": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST http://localhost:9200/accounts/person/_search | |
Content-Type: application/json | |
{ | |
"suggest": { | |
"mysuggest-example": { | |
"text": "jon", | |
"term": { | |
"field": "name", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
request | |
POST http://localhost:9200/personels/musteri/_search | |
Content-Type: application/json | |
{ | |
"query": { | |
"multi_match": { | |
"query": "kader", | |
"fuzziness": "AUTO" |
OlderNewer