views:

127

answers:

3

Hi

I would like to implement a search functionality within my iPhone app which can search for terms within all the documents in the application.

I believe I cannot use Apache Lucene directly since it is in Java. Can I use Lucy which is a C port of Lucene (not sure if Perl and Ruby would work on it)?

Or is there any other open-source search engine which I can use in my iPhone app for search within the app?

Thanks

+1  A: 

There is a Objective-C port of Lucene - LuceneKit. Mac OS has SearchKit, not sure if it is available for iPhone.

I haven't tried out either of these. So, my knowledge is only academic.

Shashikant Kore
+1  A: 

Not sure exactly what you're doing, but indexing and searching are relatively resource intensive operations. You might be better off building a server application that handles the full-text search and your iPhone app can communicate with it.

bajafresh4life
+1  A: 

you can use sqlite3 with it's fts3 - full text search engine. Requires nothing, embedded database. Iphone also uses it internally.

Pardust