1.6.8 Content Streams

Source: Internet
Author: User
Tags solr

1. Content Streams

When the requesthandlers request is accessed based on the URL path, Solrqueryrequest contains the requested parameters and also contains a list of contentstreams (containing the bulk data).

1.1 Stream Sources

Currently requesthandlers can get content stream in a variety of ways.

    • For multiple file uploads, each file is passed as a stream.
    • For a POST request, the content type cannot be application/x-www-form-urlencoded. The body of the post is passed as a stream. The body of the entire post is parsed as a parameter and is included in the SOLR parameter.
    • The contents of the Stream.body parameter are passed as stream.
    • If the remote stream pass is turned on, the URL request can be invoked. The contents of each Stream.url and Stream.file parameter are crawled and passed as a stream.

By default, Curl sends a application/x-www-form-urlencoded header. If you want to test a solrcontentheader stream. You need to set the stream type with "-H".

1.2 remotestreaming

The remote pass stream lets you send the contents of a URL as a stream to solrrequesthandler. For some security reasons, remote streaming is off in Solrconfig.xml.

Note: If streaming is turned on, This allows a request to be sent to any URL or local file. If the warehouse (dump) is turned on, it will allow any system to access files on your system.

<!-- Make sure your system have authentication before enabling remote streaming!  - <  enableremotestreaming= "true"  multipartuploadlimitinkb= "2048"  />
1.3 Debugging Requests
<name= "/debug/dump"  class= "SOLR. Dumprequesthandler "/>

This handle uses the specified writer type wt. SIMPLE output solrqueryrequest content. This is a very useful tool in helping to understand what kind of streams is available for solrqueryrequest.

1.6.8 Content Streams

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.