Lucene in Android(Android 中的 Lucene)
问题描述
我是 android 和 Lucene 的新手.我可以使用 Lucene 在 android list view 中进行搜索吗?我已经尝试导入 package 2.3.2 并且还使用了库中的 jar 文件.但是,SearchFiles.java 中有错误错误是:无法解析类型 java.rmi.Remote.它是从 .class 文件中间接引用的.
I'm new to android and Lucene. can I use Lucene for search in android list view.
I have tried importing the package 2.3.2 and also used the jar files in library.
However, there is an error in SearchFiles.java
error is :
The type java.rmi.Remote cannot be resolved. It is indirectly referenced from .class files.
这个文件可能不存在于 android.是这个问题吗?
There is a possibility that this file doesnt exist for android. Is this the problem?
推荐答案
你可能想使用原生 Full文本搜索 功能在 SQLite 相反,它在 Android 中可用,并且比 Dalvik VM 下的 Java Lucene 实现更快(因为它是本机运行的)并且使用更少的内存.
You may want to use the native Full Text Search feature called FTS3 in SQLite instead, which is available in Android and it is faster (since it is running natively) and uses less memory than a Java Lucene implementation under Dalvik VM.
这篇关于Android 中的 Lucene的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android 中的 Lucene
基础教程推荐
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
