Talking to Solr through a log4j appender?

View: New views
2 Messages — Rating Filter:   Alert me  

Talking to Solr through a log4j appender?

by Moazam Raja :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all, has anyone tried communicating to Solr via a log4j appender? If so,
what kind of layout are you using to format the requests properly?

The whole purpose of using a log4j appender to talk to Solr would be so that
adding Solr/Lucene to an existing application would be minimally invasive.

Thanks.

-M

Re: Talking to Solr through a log4j appender?

by ryantxu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

do you mean, writing an appender that when you call:
log.info( "blah bla ba..." );
that gets posted to a solr index?

- - -

I have not heard of anything, but should be relatively easy using  
solrj...


On Oct 7, 2008, at 4:35 PM, Moazam Raja wrote:

> Hi all, has anyone tried communicating to Solr via a log4j appender?  
> If so,
> what kind of layout are you using to format the requests properly?
>
> The whole purpose of using a log4j appender to talk to Solr would be  
> so that
> adding Solr/Lucene to an existing application would be minimally  
> invasive.
>
> Thanks.
>
> -M

LightInTheBox - Buy quality products at wholesale price!