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
when I'm doing the query: | |
curl -XGET 'http://localhost:9200/tagindex/tag/_search?pretty=true&size=30&from=0' -d ' | |
{ "query" : { "matchAll" : {} | |
} | |
}' | |
I'm getting results ala: | |
[ | |
{ |
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
//*********** | |
// Then I'm seeing in the logs of the real device the following: | |
//*********** | |
04-02 23:48:06.923: INFO/ActivityManager(2466): Starting activity: Intent { act=android.intent.action.SEARCH cmp=com.xy/.SearchActivity bnds=[0,520][480,616] (has extras) } | |
04-02 23:48:06.923: WARN/ActivityManager(2466): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=android.intent.action.SEARCH cmp=com.xy/.SearchActivity bnds=[0,520][480,616] (has extras) } | |
04-02 23:48:06.958: INFO/ActivityManager(2466): Starting activity: Intent { act=android.intent.action.SEARCH cmp=com.xy/.SearchActivity bnds=[0,0][480,96] (has extras) } | |
04-02 23:48:06.958: WARN/ActivityManager(2466): startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=android.intent.action.SEARCH cmp=com.xy/.SearchActivity bnds=[0,0][480,96] (has extras) } | |
04-02 23:48:07.087: INFO/notification(5028): onStartCmd: received start id 2: Intent { cmp=com.xy/. |
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_name":"jetwickcluster","nodes":{"R57UiAZtRl26lo1pKM-Z-Q":{"name":"Diamanda Nero","indices":{"size":"17.7gb","size_in_bytes":19015420480,"docs":{"num_docs":5824080},"cache":{"field_evictions":0,"field_size":"1.8gb","field_size_in_bytes":1941834588,"filter_count":452761,"filter_evictions":0,"filter_mem_evictions":565,"filter_size":"978.4mb","filter_size_in_bytes":1025931880},"merges":{"current":0,"total":383,"total_time":"32.8s","total_time_in_millis":32804}},"os":{"timestamp":1303069801270,"uptime":"-1 seconds","uptime_in_millis":-1000,"load_average":[]},"process":{"timestamp":1303069801270},"jvm":{"timestamp":1303069801270,"uptime":"1 hour, 58 minutes, 31 seconds and 249 milliseconds","uptime_in_millis":7111249,"mem":{"heap_used":"4.3gb","heap_used_in_bytes":4662957496,"heap_committed":"7gb","heap_committed_in_bytes":7532314624,"non_heap_used":"40.5mb","non_heap_used_in_bytes":42482096,"non_heap_committed":"41.3mb","non_heap_committed_in_bytes":43384832},"threads":{"count":63,"peak_count":98},"gc":{ |
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
Wed Apr 20 10:25:01 CEST 2011 | |
{"cluster_name":"jetwickcluster","nodes":{"1KTLQVAJQM6plAjRiVhGdA":{"name":"Mercy","indices":{"size":"7.7gb","size_in_bytes":8346718506,"docs":{"num_docs":4690207},"cache":{"field_evictions":311,"field_size":"214.3mb","field_size_in_bytes":224767248,"filter_count":1076484,"filter_evictions":0,"filter_mem_evictions":34383,"filter_size":"6gb","filter_size_in_bytes":6510122256},"merges":{"current":0,"total":3953,"total_time":"3.4m","total_time_in_millis":205903}},"os":{"timestamp":1303287901707,"uptime":"-1 seconds","uptime_in_millis":-1000,"load_average":[]},"process":{"timestamp":1303287901707},"jvm":{"timestamp":1303287901707,"uptime":"20 hours, 7 minutes, 19 seconds and 718 milliseconds","uptime_in_millis":72439718,"mem":{"heap_used":"6.9gb","heap_used_in_bytes":7464808680,"heap_committed":"7gb","heap_committed_in_bytes":7532314624,"non_heap_used":"41.6mb","non_heap_used_in_bytes":43714760,"non_heap_committed":"64.9mb","non_heap_committed_in_bytes":68096000},"threads":{"count":6 |
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
<html xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd" > | |
<head> | |
<title>Wicket Quickstart Archetype Homepage</title> | |
</head> | |
<body> | |
<form wicket:id="searchform"> | |
<input type="text" wicket:id="textField" name="query"/> | |
<input type="submit" value="Search"/> | |
</form> | |
</body> |
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
package de.jetwick.es; | |
import org.elasticsearch.index.query.xcontent.QueryBuilders; | |
import org.elasticsearch.client.action.search.SearchRequestBuilder; | |
import java.io.IOException; | |
import org.elasticsearch.action.admin.cluster.health.ClusterHealthRequest; | |
import org.elasticsearch.action.admin.indices.create.CreateIndexRequest; | |
import org.elasticsearch.action.admin.indices.refresh.RefreshRequest; | |
import org.elasticsearch.action.search.SearchResponse; | |
import org.elasticsearch.client.Client; |
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
org.elasticsearch.search.builder.SearchSourceBuilderException: Failed to build search source | |
at org.elasticsearch.search.builder.SearchSourceBuilder.buildAsUnsafeBytes(SearchSourceBuilder.java:399) | |
at org.elasticsearch.action.search.SearchRequest.source(SearchRequest.java:259) | |
at org.elasticsearch.client.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:582) | |
at org.elasticsearch.client.action.support.BaseRequestBuilder.execute(BaseRequestBuilder.java:56) | |
at org.elasticsearch.client.action.support.BaseRequestBuilder.execute(BaseRequestBuilder.java:51) | |
at de.jetwick.es.ElasticTweetSearch.query(ElasticTweetSearch.java:239) | |
at de.jetwick.es.ElasticTweetSearch.query(ElasticTweetSearch.java:228) | |
at de.jetwick.es.ElasticTweetSearch.search(ElasticTweetSearch.java:243) | |
at de.jetwick.es.ElasticTweetSearch.findDuplicates(ElasticTweetSearch.java:341) |
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
curl -XDELETE 'http://localhost:9200/twitter/' | |
# mapping for article includes | |
# "properties" : { "_boost" : { "type" : "float", "name" : "_boost", "null_value" : 1.0}, ... | |
curl -XPUT 'http://localhost:9200/twitter/article/1' -d '{ | |
"_boost" : 1.0 | |
}' | |
curl -XPUT 'http://localhost:9200/twitter/article/2' -d '{ |
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
{ | |
"query":{ | |
"bool":{ | |
"must":[{ | |
"query_string":{ | |
"default_field":"title", | |
"query":"japan" | |
} | |
} | |
], |
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
2011-07-08 22:52:35,176 [elasticsearch[cached]-pool-1-thread-2] WARN org.elasticsearch.cluster.action.shard - [Tempest] sending failed shard for [a2index][0], node[1gELJqSGTZ2vSMnTX4jZQQ], [P], s[INITIALIZING], reason [Failed to start shard, message [IndexShardGatewayRecoveryException[[a2index][0] failed recovery]; nested: EngineCreationFailureException[[a2index][0] Failed to create engine]; nested: IOException[read past EOF]; ]] | |
2011-07-08 22:52:35,176 [elasticsearch[cached]-pool-1-thread-2] WARN org.elasticsearch.cluster.action.shard - [Tempest] received shard failed for [a2index][0], node[1gELJqSGTZ2vSMnTX4jZQQ], [P], s[INITIALIZING], reason [Failed to start shard, message [IndexShardGatewayRecoveryException[[a2index][0] failed recovery]; nested: EngineCreationFailureException[[a2index][0] Failed to create engine]; nested: IOException[read past EOF]; ]] | |
2011-07-08 22:52:41,242 [elasticsearch[cached]-pool-1-thread-2] WARN org.elasticsearch.indices.cluster - [Tempest] [a2index][0] failed to start shard | |
or |