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 | |
interface HandlerInterface | |
{ | |
public function handle($message); | |
} | |
interface BufferedHandlerInterface extends HandlerInterface | |
{ | |
public function flush(); |
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
''' | |
Created on Oct 22, 2014 | |
@author: Victor | |
On 20141124 I asked about how to eager load the parent. The code, I submitted with the post is located at:https://gist.github.com/vfr292/a5939418285e4c8bd03b | |
''' |
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
########################################################################################## | |
# use case: training a classifier | |
# | |
# Many systems classify documents by assigning “tag” or “category” fields. Classifying | |
# documents can be a tedious manual process and so in this example we will train a classifier | |
# to automatically spot keywords in new documents that suggest a suitable category. | |
curl -XGET "http://localhost:9200/products_fr/_search" -d' | |
{ | |
"query": { |