본문 바로가기

IT-Consultant

PyLucene 내용 요약


루씬이라고 해서 파이썬 코드로 새롭게 만든것인줄 알았는데, 그게 아니라 자바 루씬을 그대로 가져와서 파이썬에서 사용하는 형태다. 이런 형태로 만들면 문제가 좀 있다. 에러가 발생했을때 디버깅이 어렵고, 약간의 성능저하가 발생한다. 파이썬용 검색엔진이 있나 살펴봐야겠다. 

What is PyLucene ?

PyLucene is a Python extension for accessing Java Lucene. Its goal is to allow you to use Lucene's text indexing and searching capabilities from Python. It is API compatible with the latest version of Java Lucene, version 3.6.1 as of August 24th, 2012.

PyLucene is not a Lucene port but a Python wrapper around Java Lucene. PyLucene embeds a Java VM with Lucene into a Python process. The PyLucene Python extension, a Python module calledlucene is machine-generated by JCC.

PyLucene is built with JCC, a C++ code generator that makes it possible to call into Java classes from Python via Java's Native Invocation Interface (JNI). Sources for JCC are included with the PyLucene sources.

See here for more information and documentation about PyLucene.

Requirements

PyLucene is supported on Mac OS X, Linux, Solaris and Windows.

PyLucene requires Python version 2.x (x >= 3.5) and Java version 1.x (x >= 4). Building PyLucene requires GNU Make, a recent version of Ant capable of building Java Lucene and a C++ compiler. Use of setuptools is recommended.

See the JCC installation instructions for more information about building JCC from sources.

See the PyLucene installation instructions for more information about building PyLucene from sources.