pylucene入门
来源:互联网 发布:objectsnmp 源码下载 编辑:程序博客网 时间:2024/06/05 15:23
本文只对一次无聊的成功的经历做个记录,就算是来祭奠快逝去的2010年吧~~
pylucene: http://lucene.apache.org/pylucene/index.html
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
基础环境:(试验机环境)
pylucene-3.0.3-1 http://mirror.bjtu.edu.cn/apache//lucene/pylucene/pylucene-3.0.3-1-src.tar.gz 内附:Jcc 2.7
Python 2.5.4
Java 1.6.0_16
Red Hat 4.1.2-46
GCC 4.1.2
Ant 1.6.5
准备上面的环境,download pylucene tar包并解压缩
pushd jcc
Edit setup.py and review that values in the INCLUDES, CFLAGS, DEBUG_CFLAGS, LFLAGS and JAVAC are correct for your system(我的jdk是自己装的,所以修改了JDK[linux2],其他review后没问题)
$ python setup.py build
$ sudo python setup.py install(到此Jcc安装完毕)
popd
edit Makefile to match your environment(只需要把你对应的linux那部分注释去掉,然后更改下PREFIX_PYTHON,如果python是你自己装的话)
make
sudo make install
make test (look for failures)(到此pylucene安装完毕)
cd sample
python IndexFiles <doc_directory> 会把<doc_directory目录里的文本文件建立一个index的索引放在当前目录
python SearchFiles.py 交互式查询刚才建立的index中的内容
~.~
- pylucene入门
- PyLucene安装
- PyLucene实战
- [pylucene]Pylucene不能导入SmartChineseAnalyzer的解决办法
- [PyLucene]使用PyLucene中JVM的疑问
- pylucene的使用
- PyLucene安装及使用
- pylucene安装手记
- PyLucene win版安装
- Linux安装配置Pylucene
- PyLucene安装与初试
- PyLucene学习之一
- PyLucene学习之二
- PyLucene学习之三
- Linux上安装PyLucene
- Ubuntu 16.04 安装 PyLucene
- PyLucene学习笔记 文件索引及检索
- PyLucene是基于Python的Lucene
- java按字节截取字符串
- Windows7安装包中打开WIM文件并提取系统文件
- windows服务中的定时器timer的使用
- 关于奇异值分解的一些讨论
- CHK恢复软件,CHK恢复工具-CHKRecovery V2.10 最新版上线!
- pylucene入门
- 用GridView实现无限级嵌套
- java
- Subversion合并跟踪 – 基础
- 在fedora 10下载android源码
- Java程序执行超时——Future接口介绍
- linux sticky bit 目录权限 rwt权限
- QString QbyteArray
- SVN使用教程之-分支/标记 合并 subeclipse