G*********a 发帖数: 1080 | | c*****s 发帖数: 214 | 2
http://jakarta.apache.org/lucene/docs/demo.html有例子
我曾经调通过一个程序,很简单,也很灵活。
和一般的搜索一样先建索引然后搜索,可以搜索任何东西,只要你提供读那东西的程序。
【在 G*********a 的大作中提到】 : @@
| G*********a 发帖数: 1080 | 3 en, but what i want to do is really understand its API and extend its simple
demo into a more flexible and powerful testbed.
for example, how to extend Similarity class etc. if u do play on it, i hope i
can discuss with u.
。
【在 c*****s 的大作中提到】 : : http://jakarta.apache.org/lucene/docs/demo.html有例子 : 我曾经调通过一个程序,很简单,也很灵活。 : 和一般的搜索一样先建索引然后搜索,可以搜索任何东西,只要你提供读那东西的程序。
| c*****s 发帖数: 214 | 4 The process of creating index and searching is sort of standard, you can't
make too many changes on them.
Most work is done to create your own document reader. Here the document means
an item of record, is pretty abstract thing.
I'm not sure what is the Similarity Class you mentioned. If you want to search
within class, you have to design such reader to parse what you want to search.
What does Lecene to is create index for the source you provide(Lecenu also
provides the reader for txt and html f
【在 G*********a 的大作中提到】 : en, but what i want to do is really understand its API and extend its simple : demo into a more flexible and powerful testbed. : for example, how to extend Similarity class etc. if u do play on it, i hope i : can discuss with u. : : 。
|
|