Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lucene in Android

Tags:

android

lucene

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.

There is a possibility that this file doesnt exist for android. Is this the problem?

like image 378
ketki Avatar asked Oct 19 '11 12:10

ketki


2 Answers

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.

like image 126
Hendy Irawan Avatar answered Nov 15 '22 17:11

Hendy Irawan


I've successfully used Lucene 3.3 for really simple search dute and it works. However, I have no idea what the memory usage impact is. In the 3.3 there is no dependency from RMI. If you need 2.3.2 and you have the source code you can free Lucene from the RMI dependency (I've read about a guy who succeeded in doing this).

like image 31
Blackbelt Avatar answered Nov 15 '22 16:11

Blackbelt