1。题目:一边……一边……小朋友写:他一边脱衣服,一边穿裤子。老师批语:他到底是要脱还是要穿啊?2。题目:其中小朋友写:我的其中一只左脚受伤了。老师批语:你是蜈蚣吗?3。题目:陆陆续续小朋友写:下班了,爸爸陆陆续续的回家了。老师批语:你到底有几个爸爸呀?4。题目:难过小朋友写:我家门前有条水沟很难过。老师批语:老师更难过。5。题目:又 又小朋友写:我的妈妈又矮又高又胖又瘦。老师批语;你的妈妈 是变形金钢吗?6。题目:你看小朋友写:你看什么看!没看过啊老师批语:没看过7。题目:欣欣向荣小朋友写:欣欣向荣荣告白。老师批语:连续剧不 ...
- 21:02
- 浏览 (87)
- 评论 (0)
主题:spring源码分析-XmlBeanFactory导读
private final XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this);
public class XmlBeanFactory extends DefaultListableBeanFactory
public XmlBeanFactory(Resource resource)
public XmlBeanFactory(Resource resource, BeanFactory parentBeanFactory)
...
http://cache.baidu.com/c?m=9d78d513d9d431ab4f999f697c60c0156d4381132ba7da0208de843996732f325321a3e52878564291d27d141cb21707abb62172405c62b68cc8ff1a8ee0c46f388850652d439b1f49925fb28a1c769c77d00fbeec5ef0ba8768d5f18c&p=8b2a9615d9c115f901f5856852&user=baidu
童年池塘边的榕树上知了在声声叫着夏天操场边的秋千上只有蝴蝶停在上面黑板 ...
- 22:13
- 浏览 (164)
- 评论 (0)
第十六拿手好戏:谚语精选-充满智慧之言谈 1. All work and no play makes Jack a dull boy.2. Great minds think alike.3. No news is good news. (没消息就是好消息。)4. One picture is worth a thousand words. (百闻不如一见。)5. Nothing ventured, nothing gained. (不入虎穴,焉得虎子。)6. Life is full of ups and downs. (生活充满起伏。)7. It's no use crying ...
第十二拿手好戏:如何提出劝告和意见之精华 1. If you want my advice, I don't think you should go.2. I suggest that you tear up the letter and start over again〖把信撕掉重新写过〗.3. It's only a suggestion, and you can do what you please. (这只是个建议,你可按照你的意愿去做。)4. Let me give you a little fatherly〖慈父般的〗advice.5. If you don't li ...
第九拿手好戏:人的生命和活力之源-工作(二)
48. The times have been very bad. (时机一直很坏。)49. We are in the red. (我们有亏损/赤字。)50. The company went broke. (这家公司破产了。)51. I visited Japan on an observation tour of its industries. (我到日本观摩它的工业。)52. I have to feed a family of five〖养活五口之家〗.53. I've got to keep my nose to the ...
第六拿手好戏:男女之间-永恒的主题 1. Are you married or single?2. Do you have anyone in mind?3. I've been dying to see you. (我一直好想见你。)4. My girlfriend and I broke up.5. How did you get to know her? (你是怎么认识她的。)6. How long have you known her?7. She is not my kind of girl. (她不是我喜欢的那一种。)8. He was our go-between. ( ...
第四拿手好戏:感谢-美好人生的添加剂 1. Thank you for everything. /Thank you very much indeed.2. I appreciate it /your help very much. 3. I don't know how to thank you enough.4. It's kind of you to say that.5. You've been a great help /very helpful.6. Thanks a million, Mr. Lee, for what you have done for me ...
第二拿手好戏:和陌生人相识相知相交-非凡的能力 A: Mary, this is Stone's brother Jim.B: I'm very glad/pleased to meet you.C: It's a pleasure to meet you. /The pleasure is mine.B: How do you like China so far? /What's your impression of China? /What do you think of China?C: Its really different from what I expected.B: ...
第一拿手好戏:社交性寒暄的全面总结
1. A: How are you doing? B: I'm doing fine/OK/pretty well/great/super/terrific/so-so. 或: Not bad. /The same as ever. /I can't complain too much. (我不能太抱怨。/还不错。)B: Terrible. I've had a headache all morning.
2. A: How's it going? B: Fine. /Pretty good.A: How's everything ...
public abstract class Analyzer {
public abstract TokenStream tokenStream(String fieldName, Reader reader);
*
* @param fieldName Field name being indexed.
* @return position increment gap, added to the next token emitted from {@link #tokenStream(String,Reader)}
*/
public int ...
/**
* 關鍵詞提醒
* @param keyword
* @return
*/
public List remindKeyword(String keyword){
List keywordList = new ArrayList();
IndexReader indexReader;
try {
File indexDir = new File(INDEX_STORE_PATH);
if (indexDir.exists()){
indexReader = IndexReader.open(INDEX_STO ...
無特別之處,了解的朋友不用看。
/**
* 限制分類的搜索
* @param keyword
* @param categoryKeyword
* @return
* @throws LuceneException
*/
public List searchIndex(String keyword, String categoryKeyword) throws LuceneException{
Analyzer analyzer = new CJKAnalyzer();
BooleanQuery query = new B ...
txt與html解析存在亂碼的問題,這個問題困擾了我好幾天,最後找到一些資料,通過多次嘗試,基本解決了。
public class TxtDocHander extends DocHander {
public Document getDocument(byte[] inputByte) throws IOException {
// 進行文檔的編碼格式識別
CodepageDetectorProxy codepageDetectorProxy = CodepageDetectorProxy.getInstance();
codepageDetec ...
上篇有提到這段代碼:
DocHander docHander = DocHanderFactory.buildDocHander(fileName);
attachDocument = docHander.getDocument(attach);
下面我們看一看實現細節。
抽象類DocHander的代碼:
public abstract class DocHander {
public static String FIELD_CONTENT = "contents";
publ ...
/**
* 文檔主體建立索引
* 注意文檔與附件分成不同的Document,但搜索到附件內容時,需鏈接到其所在文檔
* @param article
* @return
* @throws InterruptedException
* @throws Exception
*/
private Document createArticleIndex(Article article) throws Exception{
Document document = new Document();
//ID
document. ...
對索引操作的類為KbIndexProcesser
文檔主體類:Article
public class Article {
private String id;
private String topic;
private String content;
private String categoryId;
private String category;
.......
}
附件實體類:ArticleAttach
public class ArticleAttach {
private String id;
private ...
《Lucene實戰開發手記》系列文章的適用對象為Lucene初學者。
本人所在項目組正在開發一個Call Center的系統。需要開發一個知識庫來為客服提供知識搜索的支持。採用Lucene做為搜索引擎。
知識庫的需求如下:
1、知識庫以文檔的形式組織,每篇文檔含標題、分類(樹狀)、內容,可上傳多個附件。
2、文檔內容支持html格式,標題、內容、附件均要建立索引,能被搜索到。附件格式支持doc,xls,pdf,txt,htm,html
...
链接
最新评论
-
你用过哪些工作流产品?
有时候系统需要引导,我使用我们自己公司内部的审批系统,也是工作流的,我是真不想用 ...
-- by dayang2001911 -
你用过哪些工作流产品?
惭愧,这方面经验不多,最早做OA时用过IBM的NOTES,但只能说懂点点。深入的 ...
-- by gzspark -
我们的项目毛坯上线了
我给了一些建议给项目经理。技术的积累需要时间,更需要人才,慢慢来。而观念的固化更 ...
-- by cleaneyes -
我们的项目毛坯上线了
你是项目中的骨干了,一些以前公司的好的经验,可以给现在的公司推广一下
-- by climber2002 -
夢-蝴蝶(六)
居然有人看,本来就不希望有多少人看的,其实繁体字多看几篇也就习惯了,不信你试试, ...
-- by cleaneyes







评论排行榜