mirror of https://github.com/apache/lucene.git
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:
parent
1558db534d
commit
b33318f06e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue