lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: Basic authentication for stream.url
Date Wed, 17 Nov 2010 19:15:25 GMT
On Tue, Nov 16, 2010 at 8:57 PM, Jayendra Patil
<jayendra.patil.001@gmail.com> wrote:
> We intend to use schema.url for indexing documents. However, the remote urls
> are secured and would need basic authentication to be able access the
> document.
>
> The implementation with stream.file would mean to download the files and
> would cause duplicity, whereas stream.body would have indexing performance
> issues with the hugh data being transferred over the network.
>
> The current implementation for stream.url in ContentStreamBase.URLStream
> does not support authentication.
> But can be easily supported by :-
> 1. Passing additional authentication parameter e.g. stream.url.auth with the
> encoded authentication value - SolrRequestParsers
> 2. Setting Authorization request property for the Connection -
> ContentStreamBase.URLStream
>     this.conn.setRequestProperty("Authorization", "Basic " +
> encodedauthentication);


Sounds like a good idea to me.
Could you open a JIRA issue for this feature, and supply a patch if
you get to it?

-Yonik
http://www.lucidimagination.com

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


Mime
View raw message