• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Lucene in Android

ketki

Lurker
I'm new to android and Lucene.
I want to know whether I can use lucene for search in android list view.
I have tried importing the lucene package 2.3.2 in android 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.


-Ketki
 
It would be good if we can integrate Lucene into Android. But as of now, we can just simply use SQLite SQL provided wildcard search to do for us. Unless you are talking about data that already appear in the list view and you want to search based on what is in the list view instead of going to the SQLite database to do query ?
 
I am talking about the json data that I have already imported into the list view. So I dont have to go to the SQLite database. But this is json data. So i think that it might be getting stored in SQLite. Please help me as I am not able to find that
 
As of now I still can't use Lucene in Android too. I guess you just have to store the json data into the SQLite database and that use the SQL wildcard search to help you.
 
Can we integrate lucene with Android? Doing so will the search performance of contacts increase? Please let me know about it, I am new to Android.
 
It is possible to integrate Lucene into Android. As said in this Thread

groups.google.com/group/android-developers/browse_thread/thread/601329551a87e601

there are no strong dependencies to RMI.

1. Delete "extends java.rmi.Remote" from the Class
"org.apache.lucene.search.Searchable"
2. Delete class "org.apache.lucene.search.RemoteSearchable"
 
Back
Top Bottom