开发者

Apache Lucene or another Search in iPhone app

开发者 https://www.devze.com 2023-01-01 03:27 出处:网络
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 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. C开发者_如何学运维an 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


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


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消