ITeye博客

javasky

wanglihu · 共 209 篇文章

Android开发-emulator-5554 disconnected错误解决办法

Android第一步-helloworld开发实例错误: emulator-5554 disconnected! Cancelling 'com.hitsoft.helloworld.HelloworldActivity activity launch'! Android Launch! adb is running normally. Performing com.hitsoft.helloworld.HelloworldActivity activity launch Automatic Target Mode: launching new emulator with compatibl…

2012-01-10 14:26 · Android · 评论(0)

Android开发环境的搭建步骤

Android开发环境的搭建步骤: 1.下载并安装Android SDK; 下载地址: http://dl.google.com/android/android-sdk_r16-windows.zip 解压缩后运行SDK Manager.exe,选中所有安装文件,并点击安装按钮。 2.安装eclipse3.5及以上版本; 下载地址: http://download.eclipse.org/technology/epp/downloads/release/indigo/SR1/eclipse-java-indigo-SR1-win32.zip 3.ADT插件安装: eclipse->->->-…

2012-01-10 13:34 · Android · 评论(0)

lucene3.5-使用Berkeley DB存储索引

lucene3.5-使用Berkeley DB存储索引

2012-01-06 13:12 · lucene · 评论(0)

lucene3.5自定义过滤器

lucene3.5自定义过滤器,随后!

2012-01-05 20:17 · lucene · 评论(4)

lucene3,5处理日期范围查询

lucene3,5处理日期范围查询,随后!

2012-01-05 20:16 · lucene · 评论(0)

lucene3.5处理数值域的范围查询

lucene3.5处理数值域的范围查询随后、

2012-01-05 20:15 · lucene · 评论(0)

lucene3.5自定义QueryParser类

lucene3.5自定义QueryParser类,随后!

2012-01-05 20:12 · lucene · 评论(2)

lucene3.5高亮设置

import java.io.IOException; import java.io.StringReader; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.search.Query; import …

2012-01-05 11:14 · lucene · 评论(0)

lucene3.5高亮显示报错

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/lucene/index/memory/MemoryIndex at org.apache.lucene.search.highlight.WeightedSpanTermExtractor$FakeReader.<clinit>(WeightedSpanTermExtractor.java:559) at org.apache.lucene.search.highlight.WeightedSpanTermExtractor.extract(Weigh…

2012-01-04 20:40 · lucene · 评论(1)

lucene3.5查询过滤

lucene3.5查询过滤

2012-01-04 16:10 · lucene · 评论(2)

lucene3.5排序查询

lucene3.5排序查询

2012-01-04 16:10 · lucene · 评论(0)

lucene3.5分页查询

asdasdasdasd

2012-01-04 16:08 · lucene · 评论(0)

lucene3.5检索实例

public class MySearcher { public static final String STORE_PATH = "E:/lucene_index"; public static void searcher(String keyword) throws ParseException,IOException { long startTime = System.currentTimeMillis(); Directory dir = FSDirectory.open(new File(STORE_PATH)); IndexReader reader = IndexReader.…

2012-01-04 10:17 · lucene · 评论(0)

lucene3.5更新索引

lucene索引的更新操作其实就是删除索引和添加索引的组合。 具体代码如下: //按term更新文档(lucene并没有提供专门的索引更新方法,我们需要先将相应的document删除,然后再将新的document加入索引) public class MyUpdateIndexer{ public static final String STORE_PATH = "E:/lucene_index"; public static void updateIndexes(String field , String keyword) throws IOException{ long startTime…

2011-12-31 10:53 · lucene · 评论(0)

lucene3.5删除索引实例

lucene提供了两种删除索引的方式,一种是通过documentId删除某document文档,第二种是根据Term删除文档document. 对于第一种方式,在实际开发中使用很少,因为对于已经创建好的索引来说,我们很难确定某文档document的文档编号documentId是什么。 对于第二种方式,具体实例列举如下。 //按term删除文档 public class MyDeleteIndexes { public static final String STORE_PATH = "E:/lucene_index"; public static void deleteIndexes(Str…

2011-12-31 10:28 · lucene · 评论(4)