Skip to content

Instantly share code, notes, and snippets.

Remote

Haydar KÜLEKCİ hkulekci

Remote
Block or report user

Report or block hkulekci

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hkulekci
hkulekci / sample_uuid_elasticsearch.java
Created Aug 13, 2019
Elasticsearch UUID Generator Part
View sample_uuid_elasticsearch.java
//*******************************************************************
// Welcome to CompileJava!
// If you experience any issues, please contact us ('More Info') -->
// Sorry that the "Paste" feature no longer works! GitHub broke it.
//*******************************************************************
import java.lang.Math; // headers MUST be above the first class
/*
@hkulekci
hkulekci / trait_example.php
Last active May 15, 2019
Name Trait Method to Override
View trait_example.php
<?php
trait A {
public static function dispatch()
{
var_dump(func_get_args());
return new static(...func_get_args());
}
}
@hkulekci
hkulekci / example.md
Created May 2, 2019
Esalticsearch Example Usage
View example.md
DELETE demodata


PUT demodata
{
  "mappings": {
    "document": {
      "properties": {
        "documentName": {
@hkulekci
hkulekci / elastic.md
Last active Apr 26, 2019
Standard Analyzer Weird Result
View elastic.md
########

GET _analyze
{
  "text": ["document.txt"], 
  "analyzer": "standard"
}

{
@hkulekci
hkulekci / dynamic_templates.md
Last active Mar 2, 2019
Elasticsearch Dynamic Templates Example
View dynamic_templates.md
DELETE products

PUT products
{
  "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 0
  },
  "mappings": {
@hkulekci
hkulekci / index.md
Last active Feb 12, 2019
Index Preparing For Medium Blog
View index.md
DELETE products

PUT products
{
  "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 0
  },
  "mappings": {
View container-example-2.php
<?php
class Container
{
protected $container = [];
public function add($a)
{
$this->container[] = $a;
}
View container-example.php
<?php
interface Container
{
public function add();
public function show();
}
class Container1 implements Container
{
@hkulekci
hkulekci / 01 - data.md
Last active Oct 23, 2018
Medium Example
View 01 - data.md


DELETE cities

PUT cities
{
  "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 0,
@hkulekci
hkulekci / Index.php
Last active Aug 22, 2018
Index model for apisearch php-client
View Index.php
<?php
declare(strict_types=1);
namespace Apisearch\Model;
use Apisearch\Exception\InvalidFormatException;
/**
* Class Coordinate.
You can’t perform that action at this time.