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

Lucene in Android

ketki

Lurker
Oct 10, 2011
4
0
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 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"
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones