zoukankan      html  css  js  c++  java
  • Get Term frequency in Lucene using Zend Framework

    I use Zend Framework to provide a PHP version Lucene. Currently, Zned should be the best PHP wrapper for Java Lucene.

    Create a Zend_Search_Lucene , using the method termFreqs to get the term frequecy for a specific term. There is no implementation in Zend for Java method like termDocs , which provides a Term    =>    <docNum, freq>*.

    So now I have to iterate all terms for figure out the frequency. But better for nothing :)

    Sample code to get term frequency:

    Sample code to crate index:

    Sample code to search index

  • 相关阅读:
    dnn
    DATAGRID学习
    在.net下的换行符
    treeview
    《25项最优时间管理工具与技巧》
    vim常用操作
    【Google给毕业生的忠告】
    MySQL的安装、使用及权限管理
    各种国际化标准组织
    ubuntu thunderbird 邮箱 163 配置 不能发送问题
  • 原文地址:https://www.cnblogs.com/ainima/p/6331358.html
Copyright © 2011-2022 走看看