You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Suneel Marthi (JIRA)" <ji...@apache.org> on 2013/01/24 00:21:12 UTC

[jira] [Comment Edited] (SOLR-788) MoreLikeThis should support distributed search

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

Suneel Marthi edited comment on SOLR-788 at 1/23/13 11:19 PM:
--------------------------------------------------------------

I have Solr 4.1 setup, and trying to execute mlt searches - it doesn't seem to be working (unless I am doing something fundamentally wrong).

Here's what I did:-

1. Setup Solr 4.1, modified the <luceneMatchVersion> field in solr config.xml to be Lucene_41. Also have the below entry enabled in the config file
    <requestHandler name="/mlt" class="solr.MoreLikeThisHandler">
    </requestHandler>

2. We are running distributed Solr servers (about 30 of them, each pointing to their respective shards and the shards are not replicated). There is a Master Solr (in addition to the 30 slave Solrs) and all queries are directed to the Master.

3. Ran the following mlt query 
   http://localhost:8900/solr/collection1/select?q=microsoft&mlt=true&mlt.fl=content&mlt.mindf=1&mlt.mintf=1&fl=id,content

 <id,content> are fields defined in our Solr schema.

4. Solr seems to execute the query and see the below error after a few minutes of trying to execute the above request

 <response>
<lst name="responseHeader">
<int name="status">400</int>
<int name="QTime">318230</int>
<lst name="params">
<str name="mlt.mindf">1</str>
<str name="fl">id,content</str>
<str name="mlt.fl">content</str>
<str name="q">microsoft</str>
<str name="mlt.mintf">1</str>
<str name="mlt">true</str>
</lst>
</lst>
<lst name="error">
<str name="msg">org.apache.solr.search.SyntaxError: Cannot parse '+(content:urn:schemas content:xml:namespace content:prefix content:ns content:microsoft content:com:vml content:com:office:office content:v content:o) -id:nordstoga.com': Encountered " ":" ": "" at line 1, column 13.
Was expecting one of:
    <AND> ...
    <OR> ...
    <NOT> ...
    "+" ...
    "-" ...
    <BAREOPER> ...
    "(" ...
    ")" ...
    "*" ...
    "^" ...
    <QUOTED> ...
    <TERM> ...
    <FUZZY_SLOP> ...
    <PREFIXTERM> ...
    <WILDTERM> ...
    <REGEXPTERM> ...
    "[" ...
    "{" ...
    <LPARAMS> ...
    <NUMBER> ...
                </str>
<int name="code">400</int>
</lst>
</response>


Am I doing this right?
                
      was (Author: smarthi):
    I have Solr 4.1 setup, and trying to execute mlt searches - it doesn't seem to be working (unless I am doing something fundamentally wrong).

Here's what I did:-

1. Setup Solr 4.1, modified the <luceneMatchVersion> field in solr config.xml to be Lucene_41. Also have the below entry enabled in the config file
    <requestHandler name="/mlt" class="solr.MoreLikeThisHandler">
    </requestHandler>

2. We are running distributed Solr servers (about 30 of them, each pointing to their respective shards and the shards are not replicated). There is a Master Solr (in addition to the 30 slave Solrs) and all queries are directed to the Master.

3. Ran the following mlt query 
   http://localhost:8000/solr/collection1/mlt?q=id%3A[document id]&wt=xml&mlt.fl=content&mlt.mindf=1&mlt.mintf=1&fl=id,content

 <id,content> are fields defined in the schema.

4. Below is the response we are seeing
  <response>
    <lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">0</int>
  </lst>
  <result name="match" numFound="0" start="0"/>
  <null name="response"/>
</response>

We are not seeing any results returned, earlier we would see some results when running the mlt query against one specific Solr server.

Am I doing this right?
                  
> MoreLikeThis should support distributed search
> ----------------------------------------------
>
>                 Key: SOLR-788
>                 URL: https://issues.apache.org/jira/browse/SOLR-788
>             Project: Solr
>          Issue Type: Improvement
>          Components: MoreLikeThis
>            Reporter: Grant Ingersoll
>            Assignee: Mark Miller
>            Priority: Minor
>             Fix For: 4.1, 5.0
>
>         Attachments: AlternateDistributedMLT.patch, MLT.patch, MLT.patch, MoreLikeThisComponentTest.patch, SOLR-788.patch, SOLR-788.patch, SolrMoreLikeThisPatch.txt
>
>
> The MoreLikeThis component should support distributed processing.
> See SOLR-303.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org