Well, i have found the following line in
MoreLikeThisHandler$MoreListThisHelper.getMoreLikeThis(..)


      // exclude current document from results      realMLTQuery.add(
          new TermQuery
<http://javasourcecode.org/html/open-source/lucene/lucene-3.6.1/org/apache/lucene/search/TermQuery.java.html>(new
Term 
<http://javasourcecode.org/html/open-source/lucene/lucene-3.6.1/org/apache/lucene/index/Term.java.html>(uniqueKeyField.getName(),
uniqueKeyField.getType().storedToIndexed(doc.getFieldable(uniqueKeyField.getName())))),
            BooleanClause.Occur.MUST_NOT);

I'll try to remove the line someway, and see if my results work for me.

It at least is clear that this line is not surrounded by any if statement
and will always be executed, so 'NO' is the answer to "is there a way to
get the current document in the search results?".


Have Fun
Daniel



On Tue, Feb 12, 2013 at 3:25 PM, Daniel Rijkhof <daniel.rijk...@gmail.com>wrote:

> I guess it's not possible, but perhaps someone knows how to do this:
>
> Do a more like this query (through the mlt handler),
> And find the match record within the response records (top match, should
> be first in list).
>
> This would then make it possible for me to compare scores...
>
> Anybody around that did this? (Modify source code perhaps?)
>
> Have Fun
> Daniel
>

Reply via email to