Donna, this is what you need to do to get the jar, and after that you just use
MLT according to its API.
$ cd lucene-trunk
otis:~/dev/workspace/lucene-trunk otis$ cd contrib/queries/
otis:~/dev/workspace/lucene-trunk/contrib/queries otis$ ff MoreLikeThis.java
./src/java/org/apache/lucene/search/similar/MoreLikeThis.java
otis:~/dev/workspace/lucene-trunk/contrib/queries otis$ ant jar
Buildfile: build.xml
[echo] Building queries...
javacc-uptodate-check:
javacc-notice:
common.init:
build-lucene:
init:
clover.setup:
clover.info:
[echo]
[echo] Clover not found. Code coverage reports disabled.
[echo]
clover:
compile-core:
[mkdir] Created dir:
/Users/otis/dev/workspace/lucene-trunk-REAL/build/contrib/queries/classes/java
[javac] Compiling 8 source files to
/Users/otis/dev/workspace/lucene-trunk-REAL/build/contrib/queries/classes/java
jar-core:
[jar] Building jar:
/Users/otis/dev/workspace/lucene-trunk-REAL/build/contrib/queries/lucene-queries-2.2-dev.jar
jar:
BUILD SUCCESSFUL
Total time: 8 seconds
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Simpy -- http://www.simpy.com/ - Tag - Search - Share
----- Original Message ----
From: Donna L Gresh <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, May 22, 2007 2:09:55 PM
Subject: MoreLikeThis?
Hello,
I'm sorry if this is a naive question, but I have implemented my own
"MoreLikeThis" functionality, and
in re-reading the FAQ saw that it looks like something like this is
already built, so I wanted to try it out and see
if it would simplify my code:
How do I find similar documents?
See the org.apache.lucene.search.similar package from the contrib area. It
is part of Lucene starting with Lucene 1.9.
I'm using Lucene 2.1 so I'm definitely at that level, but in the contrib
area in my Lucene distribution, I couldn't figure out what I need to
include.
What do I need to do to try this package out?
thanks in advance--
Donna L. Gresh
Services Research, Mathematical Sciences Department
IBM T.J. Watson Research Center
(914) 945-2472
http://www.research.ibm.com/people/g/donnagresh
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]