Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Lucene or another Search in iPhone app

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

like image 489
lostInTransit Avatar asked May 28 '10 07:05

lostInTransit


People also ask

How do you search Lucene?

Lucene supports single and multiple character wildcard searches within single terms (not within phrase queries). To perform a single character wildcard search use the "?" symbol. To perform a multiple character wildcard search use the "*" symbol. You can also use the wildcard searches in the middle of a term.

Is Lucene a search engine?

Apache Lucene is a free and open-source search engine software library, originally written in Java by Doug Cutting. It is supported by the Apache Software Foundation and is released under the Apache Software License. Lucene is widely used as a standard foundation for non-research search applications.

Is Apache Lucene a database?

Lucene is not a database — as I mentioned earlier, it's just a Java library.


2 Answers

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

like image 66
Pardust Avatar answered Sep 26 '22 23:09

Pardust


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.

like image 25
Shashikant Kore Avatar answered Sep 25 '22 23:09

Shashikant Kore