Android 中的 Lucene [英] Lucene in Android

查看:22
本文介绍了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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆