Also, try setMinTermFreq. The default is 2. You don't have any terms with a
term frequency above 1.
-- Jack Krupansky
-Original Message-
From: Thomas Keller
Sent: Tuesday, January 15, 2013 3:22 PM
To: java-user@lucene.apache.org
Subject: Lucene-MoreLikethis
Hey,
I have a
Hey,
I have a question about "MoreLikeThis" in Lucene, Java. I built up an index and
want to find similar documents. But I always get no results for my query,
mlt.like(1) is always empty. Can anyone find my mistake? Here is an example. (I
use Lucene 4.0)
public class HelloLucene {
public
: 1. Looking at the hits, they have the same score. I'd expect them to be
: different, based on their relevance to the source document. Any ideas?
...
: This is my output. I can paste my source code in too if needed.
The output of arbitrary "secret" code isn't really a very useful for the
As a test, I tried to compare a few documents on various topics (a few on
linux, and another on the U.S. constitution) to a source document on linux
using a query formed by MoreLikeThis.
1. Looking at the hits, they have the same score. I'd expect them to be
different, based on their relevance to