由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 再请教一个lucene的问题
相关主题
再请教一个lucene的问题how to run Java on Linux?
Anybody here used apache Lucene?tomcat 访问硬盘文件的问题, 3x
ArrayList vs Array, StringBuffer vs String, 大侠们给讲讲有请问有用过lucene作中文搜索的吗?
Java 问题,请教如何找出一个array里的duplicate segments? (转载)再请教一个lucene的问题
如何造Array of Generic Type还是lucene的问题
Re: Where can i find this package?Search Results Navigation
求助Java Image Tools or APINutch
急! 如何用eclipse编辑luceneany good j2ee book?
相关话题的讨论汇总
话题: array话题: term话题: lucene话题: document话题: getterms
进入Java版参与讨论
1 (共1页)
t*g
发帖数: 1758
1
一个单词,比如说China, 我怎么能得到这个token在一篇文章中出现过多少次呢?
t*g
发帖数: 1758
2
有没有现成的api,还是要通过term,用id去比较,自己数呢?

【在 t*g 的大作中提到】
: 一个单词,比如说China, 我怎么能得到这个token在一篇文章中出现过多少次呢?
t*******e
发帖数: 684
3
try Term Vector Query, and TermFreqVector.getTermFrequencies() method.
Cited from the API doc,
"Array of term frequencies. Locations of the array correspond one to one to the terms in the array obtained from getTerms method. Each location in the array contains the number of times this term occurs in the document or the document field."
t*g
发帖数: 1758
4
Thanks. Will try.

to the terms in the array obtained from getTerms method. Each location in
the array contains the number of times this term occurs in the document or
the document field."

【在 t*******e 的大作中提到】
: try Term Vector Query, and TermFreqVector.getTermFrequencies() method.
: Cited from the API doc,
: "Array of term frequencies. Locations of the array correspond one to one to the terms in the array obtained from getTerms method. Each location in the array contains the number of times this term occurs in the document or the document field."

t*******e
发帖数: 684
5
Watch out for the slow performance though.
1 (共1页)
进入Java版参与讨论
相关主题
any good j2ee book?如何造Array of Generic Type
Twitter Search is Now 3x Faster using Java serverRe: Where can i find this package?
anybody doing Lucene/Solr?求助Java Image Tools or API
Java用在Server Side的技术是哪些?急! 如何用eclipse编辑lucene
再请教一个lucene的问题how to run Java on Linux?
Anybody here used apache Lucene?tomcat 访问硬盘文件的问题, 3x
ArrayList vs Array, StringBuffer vs String, 大侠们给讲讲有请问有用过lucene作中文搜索的吗?
Java 问题,请教如何找出一个array里的duplicate segments? (转载)再请教一个lucene的问题
相关话题的讨论汇总
话题: array话题: term话题: lucene话题: document话题: getterms