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
{ | |
"took": 3, | |
"timed_out": false, | |
"_shards": { | |
"total": 2, | |
"successful": 2, | |
"failed": 0 | |
}, | |
"hits": { | |
"total": 422, |
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
Index: wpes-mgs-p2.css | |
=================================================================== | |
--- wpes-mgs-p2.css (revision 53507) | |
+++ wpes-mgs-p2.css (working copy) | |
@@ -13,7 +13,6 @@ | |
div#wpes-p2-header { | |
border-bottom: 1px solid #ccc; | |
- padding: 20px 30px; | |
} |
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="http://localhost:9200" | |
curl -XPUT "$SERVER/bugs/page/8872248-p-145" -d '{"id":145,"url":"http://alexsandbox.wordpress.com/header-test/","date":"2010-02-06 05:23:27","date_gmt":"2010-02-06 05:23:27","author":"Alex Mills","author_login":"viper007bond","title":"Header Test","content":"asdfasd as sad f","category":"Uncategorized","meta":{"_edit_lock":["1337928058:50392"],"_edit_last":["50392"],"_thumbnail_id":["147"]},"meta_raw":{"_edit_lock":["1337928058:50392"],"_edit_last":["50392"],"_thumbnail_id":["147"]}}' | |
curl -XGET "$SERVER/bugs/_search?pretty" -d ' | |
{ | |
"query":{"filtered":{"query":{"multi_match":{"query":"automattic","fields":["title","content"]}},"filter":{"match_all":{}}}}, | |
"facets" : { | |
"tag" : { | |
"terms" : { |
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
diff --git a/src/common/class.wpes-analyzer-builder.php b/src/common/class.wpes-analyzer-builder.php | |
index 0357ea4..5787479 100644 | |
--- a/src/common/class.wpes-analyzer-builder.php | |
+++ b/src/common/class.wpes-analyzer-builder.php | |
@@ -340,6 +340,29 @@ class WPES_Analyzer_Builder { | |
continue; | |
} | |
+ if ( 'de' == $lang ) { | |
+ ////From: http://gibrown.wordpress.com/2013/05/01/three-principles-for-multilingal-indexing-in-elasticsearch/#comment-857 |
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
#word histogram query - docs for separate ids in separate types | |
curl -XGET "${SERVER}/pd-0/${ID}/_search?pretty" \ | |
-d '{ | |
"size" : 0, | |
"query" : { "match_all" : { } }, | |
"facets" : { | |
"q1" : { | |
"terms" : { | |
"field" : "q1", | |
"size" : 100 |
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
Cluster Health: | |
{ | |
"cluster_name" : "es_cluster_dev", | |
"status" : "yellow", | |
"timed_out" : false, | |
"number_of_nodes" : 1, | |
"number_of_data_nodes" : 1, | |
"active_primary_shards" : 15, | |
"active_shards" : 15, | |
"relocating_shards" : 0, |
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
public static function post( $blog_id, $post_id, $mlt_fields = array( 'mlt_content' ), $analyzer = false ) { | |
switch_to_blog( $blog_id ); | |
$post = get_post( $post_id ); | |
$fld_bldr = new ES_WP_Field_Builder(); | |
$tax_data = $fld_bldr->taxonomy( $post ); | |
$mlt_content = $fld_bldr->mlt_content( array( | |
'title' => $fld_bldr->clean_string( $post->post_title ), | |
'content' => $fld_bldr->clean_string( $post->post_content ), |
NewerOlder