Coder Social home page Coder Social logo

objclucene's Introduction

An Experimental Objective-C Port of Lucene 5.x

ObjCLucene is an experimental Objective-C port of Lucene. The port is done by using Google's j2objc, and the goal is to make the porting process applicable to subsequent versions of Lucene.

A sample app can be found here: LuceneSearchDemo-iOS.

Currently an Xcode project is provided to build the static library of all the translated Lucene packages:

  • lucene-analyzers-common (but without those that need BreakIterator)
  • lucene-core
  • lucene-highlighter
  • lucene-join
  • lucene-memory
  • lucene-misc (but no org.apache.lucene.store.*)
  • lucene-queries
  • lucene-queryparser
  • lucene-sandbox
  • lucene-suggest

The resulting library is huge and may not be suitable for making apps intended for the App Store.

This should be considered an experimental project, and there are a number of issues that I've already found:

  • There are some small leaks in reading and searching with the index. I've already fixed some of them, but there are still some leaks that will require further investigation.
  • There are more leaks to be fixed in index writers.
  • The translated AnalyzingInfixSuggester does not produce correct suggestion indices. It reads indices built elsewhere fine. I don't know why that is so. Perhaps some byte ordering or some Java-to-Objective-C nuances involved.
  • Highlighting is slow in the translated code.

Please see the Mobile Lucene project for more information.

Building the Xcode Project

To build the Xcode project, make sure that you have j2objc installed in vendor/j2objc. You can run the script setup-j2objc.sh to do that for you.

objclucene's People

Contributors

lukhnos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.