You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Renaud Richardet (JIRA)" <ji...@apache.org> on 2010/12/11 18:53:03 UTC
[jira] Commented: (SOLR-1085) SolrJ client java does not support
moreLikeThis querys and results
[ https://issues.apache.org/jira/browse/SOLR-1085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970487#action_12970487 ]
Renaud Richardet commented on SOLR-1085:
----------------------------------------
For the record, this workaround (proposed from Bruce Ritchie on http://www.mail-archive.com/solr-user@lucene.apache.org/msg14525.html) worked for me:
#1 - Define the mlt handles in solrconfig.xml (it's not defined in the example
solrconfig.xml I was using):
<requestHandler name="/mlt" class="solr.MoreLikeThisHandler" />
#2 - with Solrj, access the mlt handler via something similar to the following:
query.setQueryType("/" + MoreLikeThisParams.MLT);
query.set(MoreLikeThisParams.MATCH_INCLUDE, false);
query.set(MoreLikeThisParams.MIN_DOC_FREQ, 1);
query.set(MoreLikeThisParams.MIN_TERM_FREQ, 1);
query.set(MoreLikeThisParams.SIMILARITY_FIELDS, "subject,body");
query.setQuery("Your query here or in my case the unique key field:value");
> SolrJ client java does not support moreLikeThis querys and results
> ------------------------------------------------------------------
>
> Key: SOLR-1085
> URL: https://issues.apache.org/jira/browse/SOLR-1085
> Project: Solr
> Issue Type: Improvement
> Components: clients - java
> Environment: SolrJ java client
> Reporter: Maurice Jumelet
> Fix For: Next
>
> Attachments: solrj-java-morelikethis.patch
>
>
> Although SOLR supports the more like this querys (see http://wiki.apache.org/solr/MoreLikeThis) these type of query are currently not supported by the SOLR java client.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org