我们需要设计一个系统,允许用户在大文本中搜索不同的关键字,并且将来在一段时间内创建一些关于该关键词在所有文章中频率的基本报告.
我们将有:
为此,我们提出了以下解决方案:
系统将通过关键字搜索SOLR,然后在MySQL中查找结果以检索其他信息.
那么,这会是一个好方法吗?
如果大多数搜索仅针对上个月添加的文章,那么保留两个数据库是一个好主意,一个是上个月为大多数搜索添加的文章,另一个是所有文章?
如果您对如何改进这一点有任何提示/技巧,我们将不胜感激.
提前致谢!
我使用以下代码发送邮件
Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/plain");
i.putExtra(Intent.EXTRA_EMAIL, new String[] { "abc@yahoo.com" });
i.putExtra(Intent.EXTRA_CC, new String[] { bcc_string });
i.putExtra(Intent.EXTRA_SUBJECT, "Video Suggest");
i.putExtra(Intent.EXTRA_TEXT, url_link);
try {
startActivityForResult(Intent.createChooser(i, "Send Mail..."), 1);
} catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(AllVideos.this, "There are no email clients installed.", Toast.LENGTH_SHORT)
.show();
}
Run Code Online (Sandbox Code Playgroud)
在我的活动结果我使用以下代码
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
// System.out.println("inactivity");
// Toast.makeText(AllVideos.this, "Mail Send", 10).show();
System.out.println("inside activity result");
if (requestCode == 1) {
if (requestCode == 1 && resultCode …Run Code Online (Sandbox Code Playgroud)