SOLR-1344: MoreLikeThis handler can't handle numeric id

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@801768 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-08-06 18:47:16 +00:00
parent 1558db534d
commit b33318f06e
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ public class MoreLikeThisHandler extends RequestHandlerBase
BooleanQuery mltQuery = new BooleanQuery();
mltQuery.add(mltquery, BooleanClause.Occur.MUST);
mltQuery.add(
new TermQuery(new Term(uniqueKeyField.getName(), doc.get(uniqueKeyField.getName()))),
new TermQuery(new Term(uniqueKeyField.getName(), uniqueKeyField.getType().storedToIndexed(doc.getFieldable(uniqueKeyField.getName())))),
BooleanClause.Occur.MUST_NOT);
DocListAndSet results = new DocListAndSet();