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


基础教程推荐
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01