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

Upayavira edited comment on SOLR-7639 at 6/25/15 11:42 AM:
-----------------------------------------------------------

Looking at the history here:

http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java?r1=1666876&r2=1668170

we can see Yonik removed the problematic code:

{{
   public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) 
throws Exception
   {
-    // int sleep = req.getParams().getInt("sleep",0);
-    // if (sleep > 0) {log.error("SLEEPING for " + sleep);  
Thread.sleep(sleep);}
-    if (req.getContentStreams() != null && 
req.getContentStreams().iterator().hasNext()) {
-      throw new SolrException(ErrorCode.BAD_REQUEST, "Search requests cannot 
accept content streams");
-    }
}}
This means that the MLTQParser should be able to access the stream in the same 
way as the MoreLikeThisHandler does. 


was (Author: upayavira):
Looking at the history here:

http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java?r1=1666876&r2=1668170

we can see Yonik removed the problematic code:

   public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) 
throws Exception
   {
-    // int sleep = req.getParams().getInt("sleep",0);
-    // if (sleep > 0) {log.error("SLEEPING for " + sleep);  
Thread.sleep(sleep);}
-    if (req.getContentStreams() != null && 
req.getContentStreams().iterator().hasNext()) {
-      throw new SolrException(ErrorCode.BAD_REQUEST, "Search requests cannot 
accept content streams");
-    }

This means that the MLTQParser should be able to access the stream in the same 
way as the MoreLikeThisHandler does. 

> Bring MLTQParser at par with the MLT Handler w.r.t supported options
> --------------------------------------------------------------------
>
>                 Key: SOLR-7639
>                 URL: https://issues.apache.org/jira/browse/SOLR-7639
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Anshum Gupta
>            Assignee: Anshum Gupta
>             Fix For: 5.3
>
>         Attachments: SOLR-7639-add-boost-and-exclude-current.patch, 
> SOLR-7639-use-defaults.patch, SOLR-7639.patch, SOLR-7639.patch
>
>
> As of now, there are options that the MLT Handler supports which the QParser 
> doesn't. It would be good to have the QParser tap into everything that's 
> supported.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to