[ 
https://issues.apache.org/jira/browse/SOLR-788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745092#action_12745092
 ] 

Matthew Woytowitz commented on SOLR-788:
----------------------------------------

It's been 3 months since I looked at this.  Sounds fimiliar.  Here are the 
params I pass with every MLT Query.

private int minTermFrequency = MoreLikeThis.DEFAULT_MIN_TERM_FREQ;
private int minWordLength = MoreLikeThis.DEFAULT_MIN_WORD_LENGTH;
private int maxWordLength = MoreLikeThis.DEFAULT_MAX_WORD_LENGTH;
private int maxQueryTerms = MoreLikeThis.DEFAULT_MAX_QUERY_TERMS;
private int minDocFreq = MoreLikeThis.DEFAULT_MIN_DOC_FREQ;
private int maxTokensToParse = MoreLikeThis.DEFAULT_MAX_NUM_TOKENS_PARSED;

....

params.add(MoreLikeThisParams.MLT, Boolean.TRUE.toString());
params.add(MoreLikeThisParams.SIMILARITY_FIELDS, similarFields.split(","));     
                
params.add(MoreLikeThisParams.MIN_TERM_FREQ, minTermFrequency + "");            
        
params.add(MoreLikeThisParams.MIN_WORD_LEN, minWordLength + "");                
        
params.add(MoreLikeThisParams.MAX_WORD_LEN, maxWordLength + "");                
        
params.add(MoreLikeThisParams.MAX_QUERY_TERMS, maxQueryTerms + "");             
        
params.add(MoreLikeThisParams.MAX_NUM_TOKENS_PARSED, maxTokensToParse + "");    
                
params.add(MoreLikeThisParams.MIN_DOC_FREQ, minDocFreq + "");


Are you using a stock solr config?  Can you send me the solr config and 
schema.xml?
 
Are you logging the incoming queries to solr?
You should see three requests.  Your request, the shard request to get scores 
and ids and finally a request to return the fields you requested for the best 
matches.

What does the second query look like?  Take a look at that in your browser.
If you run that query what do your results look like?

Matt Woytowitz
Software Enginneer
ManTech International Corporation
Phone:  (703) 674-3674
Email: [email protected]





> MoreLikeThis should support distributed search
> ----------------------------------------------
>
>                 Key: SOLR-788
>                 URL: https://issues.apache.org/jira/browse/SOLR-788
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Priority: Minor
>         Attachments: MoreLikeThisComponentTest.patch, 
> SolrMoreLikeThisPatch.txt
>
>
> The MoreLikeThis component should support distributed processing.
> See SOLR-303.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to