为了在ES中把document检索出来,我们使用_index,type,_id,但是请求的动作变为了GET:GET
/website/blog/123?pretty响应的数据包括了我们已经熟悉的元素,另外还有使用JSON格式组织的document的_source字段,这个字段是我们存储的数据。{
"...
分类:
其他好文 时间:
2014-05-15 17:32:58
阅读次数:
329
1、下载java:jdk-7u51-linux-x64.tar.gzhttp://www.kuaipan.cn/file/id_175485603436042793.htm?source=12、移动jdk-7u51-linux-x64.tar.gz到/usr/localtar-zxvfjdk-7u51-linux-x64.tar.gz3、设置环境变量vi/etc/profile加入以下代码exportJAVA_HOME=/usr/local/java/jdk1.7.0..
分类:
编程语言 时间:
2014-05-15 12:35:10
阅读次数:
359
The modernization of world had led to coming of
many businesses online. Businesses have realized the importance of coming up
online. That is the main ...
分类:
其他好文 时间:
2014-05-15 10:14:55
阅读次数:
364
需要导入dom4j的包,以提供dom4j的支持。
package day06_parser.dom4j;
/**dom4j是一个Java的XML API,类似于jdom,用来读写XML文件的
DOM4J是dom4j.org出品的一个开源XML解析包,它的网站中这样定义:
Dom4j is an easy to use, open source library for working with ...
分类:
其他好文 时间:
2014-05-15 08:00:47
阅读次数:
215
1 sourceinsight screen font 的默认字体是Verdana的,它是一直变宽字体。在Document style中可以将字体改为定宽的Courier
2 document
options->auto indent 去掉indent Open Brace和Indent Close Brace的效果: 继上一段,在相对缩进行里, 如果输入"{"或"}", 则自动和上一行...
分类:
其他好文 时间:
2014-05-15 04:33:36
阅读次数:
330
2.6内核
1>修改linux-source-2.6.31/kernel/sys.c文件,在文件末尾添加系统响应函数。函数实现如下:
asmlinkage int sys_mycall(int number)
{
printk("这是我添加的第一个系统调用");
return number;
}
2>在linux-source-2.6.31...
分类:
系统相关 时间:
2014-05-15 02:51:56
阅读次数:
382
haproxy调度算法有以下几种:一、roundrobin,表示简单的轮询。二、static-rr,表示根据权重。三、leastconn,表示最少连接者先处理。四、source,表示根据请求源IP。五、uri,表示根据请求的URI;六、url_param,表示根据请求的URl参数‘balanceurl_param‘requiresanURLparamet..
分类:
其他好文 时间:
2014-05-15 01:00:17
阅读次数:
237
vShell的作用——命令解释器,“翻译官”§介于系统内核与用户之间,负责解释命令行v用户的登录Shell§登录后默认使用的Shell程序,一般为/bin/bash§不同Shell的内部指令、运行环境等会有所区别v执行脚本文件§方法一:脚本文件路径§方法二:sh脚本文件路径§方法三:source..
分类:
其他好文 时间:
2014-05-15 00:32:51
阅读次数:
393
描述把文本读出的API,在手机上测试知识支持英文,中文库应该没有所以不支持
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce...
分类:
移动开发 时间:
2014-05-14 21:34:49
阅读次数:
435
{
"cmd":["g++","${file}","-o","${file_path}/${file_base_name}"],
"file_regex":"^(..[^:]*):([0-9]+):?([0-9]+)?:?(.*)$",
"working_dir":"${file_path}",
"selector":"source.c,source.c++",
"encoding":"cp936",
"variants":
[
{
"name":"Run",
"shell":true,
"cmd":["st..
分类:
编程语言 时间:
2014-05-14 17:25:25
阅读次数:
300