也许这是一个简单的问题:我想通过网络分享一个位图,用默认共享"意图"分享到twitter/facebook/etc.
我找到的代码
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("image/jpeg");
sendIntent.putExtra(Intent.EXTRA_STREAM, "IDONTKNOW");
sendIntent.putExtra(Intent.EXTRA_TEXT,
"See my captured picture - wow :)");
startActivity(Intent.createChooser(sendIntent, "share"));
Run Code Online (Sandbox Code Playgroud)
需要在位图"IDONTKNOW"处填充位图.(this.bitmap)
如果不将位图保存到内部sd,我发现无法处理此问题.
问候
简单的问题:我的弹性搜索引擎中有多个索引,由 postgresql 使用 logstash 镜像。ElasticSearch 在模糊搜索方面表现良好,但现在我需要在索引中使用引用,这些引用需要由查询处理。
Index A:
{
name: "alice",
_id: 5
}
...
Index B:
{
name: "bob",
_id: 3,
best_friend: 5
}
...
Run Code Online (Sandbox Code Playgroud)
我如何查询:
获取字段名称以“b”开头的索引B和名称以“a”开头的“best_friend”引用的索引A的每个匹配项
弹性搜索甚至可以做到这一点吗?
postgresql elasticsearch logstash elasticsearch-plugin logstash-configuration