boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 再请教一个lucene的问题
相关主题
还是lucene的问题
Twitter Search is Now 3x Faster using Java server
这叫啥名词?
为啥RDBMS只用一个Index?
再请教一个lucene的问题
2 Questions about Constructor
Anybody here used apache Lucene?
急! 如何用eclipse编辑lucene
how to run Java on Linux?
tomcat 访问硬盘文件的问题, 3x
相关话题的讨论汇总
话题: lucene话题: term话题: get话题: termdocs话题: luceneid
进入Java版参与讨论
1 (共1页)
t*g
发帖数: 1758
1
如果我打开index,go through所有的term,然后要把每一个term所在的document里其
他所有的field打印出来,怎么做?谢谢!可以通过TermPostion和TermEnum直接得到吗?
t*******e
发帖数: 684
2
It sounds to me you are taking a wrong programming approach. Why do you need to open an index file and go through all the search keys?
t*g
发帖数: 1758
3
That's my director's idea. He thinks that'll be faster. Basically I'm
comparing two indices tokenized by two tokenizor.
But I think I found the way to implement it.
I take each Term can use TermDocs td = reader.termDocs(t) to get
TermDocs. Then int docNum=td.doc() to get a doc number. Is this doc number luceneid? Can I use this id to get the rest of
the fields?

need to open an index file and go through all the search keys?

【在 t*******e 的大作中提到】
: It sounds to me you are taking a wrong programming approach. Why do you need to open an index file and go through all the search keys?
t*g
发帖数: 1758
4
Or it might be easier for me just to run a search on the string of each term
to get Hits.

get
number luceneid? Can I use this id to get the rest of

【在 t*g 的大作中提到】
: That's my director's idea. He thinks that'll be faster. Basically I'm
: comparing two indices tokenized by two tokenizor.
: But I think I found the way to implement it.
: I take each Term can use TermDocs td = reader.termDocs(t) to get
: TermDocs. Then int docNum=td.doc() to get a doc number. Is this doc number luceneid? Can I use this id to get the rest of
: the fields?
:
: need to open an index file and go through all the search keys?

1 (共1页)
进入Java版参与讨论
相关主题
tomcat 访问硬盘文件的问题, 3x
请问有用过lucene作中文搜索的吗?
再请教一个lucene的问题
Search Results Navigation
Nutch
any good j2ee book?
anybody doing Lucene/Solr?
Java用在Server Side的技术是哪些?
请教个ec2 + nosql 的问题
版上有用hadoop的吗?
相关话题的讨论汇总
话题: lucene话题: term话题: get话题: termdocs话题: luceneid