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
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.
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.
Lucene is not a database — as I mentioned earlier, it's just a Java library.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With