You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Rich Cariens <ri...@gmail.com> on 2010/04/08 15:23:39 UTC

Index "transaction log" or equivalent?

Are there any best practices or built-in support for keeping track of what's
been indexed in a Solr application so as to support a full rebuild?  I'm not
indexing from a single source, but from many, sometimes arbitrary, sources
including:

   1. A document repository that fires events (containing a URL) when new
   documents are added to the repo;
   2. A book-marking service that fires events containing URLs when users of
   that service bookmark a URL;
   3. More services that raise events that make Solr update docs indexed via
   (1) or (2) with additional metadata (think user comments, tagging, etc).

I'm looking at ~200M documents for the initial launch, with around 30K new
docs every day, and many thousands of metadata events every day.

Do any of you Solr gurus have any suggestions or guidance you can share with
me?

Thanks in advance,
Rich

Re: Index "transaction log" or equivalent?

Posted by Lance Norskog <go...@gmail.com>.
Log everything to SLF? SLF & Log4j include a key/value pair map for
each logging event. This is perfect for storing the fields, and log4j
has a thing that writes raw logging event objects to a target server:

http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/net/SocketServer.html

All you have to do is code some log4j or SLF that saves the fields to
a LoggingEvent, run the server, configure the appender, and, as the
English say, "BLOB's yer uncle"!

On Thu, Apr 8, 2010 at 9:29 AM, Erik Hatcher <er...@gmail.com> wrote:
> And there's an open issue where this sort of feature can be contributed:
>  https://issues.apache.org/jira/browse/SOLR-903
>
> Though in that issue there are a two different approaches mentioned, one
> being purely SolrJ client-side (my original intention in opening the issue),
> but also what Mark mentions on the server side to allow update requests to
> be logged completely.
>
>        Erik
>
> On Apr 8, 2010, at 11:45 AM, Rich Cariens wrote:
>
>> Thanks Mark.  That's sort of what I was thinking of doing.
>>
>> On Thu, Apr 8, 2010 at 10:33 AM, Mark Miller <ma...@gmail.com>
>> wrote:
>>
>>> On 04/08/2010 09:23 AM, Rich Cariens wrote:
>>>
>>>> Are there any best practices or built-in support for keeping track of
>>>> what's
>>>> been indexed in a Solr application so as to support a full rebuild?  I'm
>>>> not
>>>> indexing from a single source, but from many, sometimes arbitrary,
>>>> sources
>>>> including:
>>>>
>>>>  1. A document repository that fires events (containing a URL) when new
>>>>
>>>>  documents are added to the repo;
>>>>  2. A book-marking service that fires events containing URLs when users
>>>> of
>>>>
>>>>  that service bookmark a URL;
>>>>  3. More services that raise events that make Solr update docs indexed
>>>> via
>>>>
>>>>  (1) or (2) with additional metadata (think user comments, tagging,
>>>> etc).
>>>>
>>>> I'm looking at ~200M documents for the initial launch, with around 30K
>>>> new
>>>> docs every day, and many thousands of metadata events every day.
>>>>
>>>> Do any of you Solr gurus have any suggestions or guidance you can share
>>>> with
>>>> me?
>>>>
>>>> Thanks in advance,
>>>> Rich
>>>>
>>>>
>>>>
>>>
>>> Pump everything through an UpdateProcessor that writes out SolrXML as
>>> docs
>>> go by?
>>>
>>> --
>>> - Mark
>>>
>>> http://www.lucidimagination.com
>>>
>>>
>>>
>>>
>
>



-- 
Lance Norskog
goksron@gmail.com

Re: Index "transaction log" or equivalent?

Posted by Erik Hatcher <er...@gmail.com>.
And there's an open issue where this sort of feature can be  
contributed:  https://issues.apache.org/jira/browse/SOLR-903

Though in that issue there are a two different approaches mentioned,  
one being purely SolrJ client-side (my original intention in opening  
the issue), but also what Mark mentions on the server side to allow  
update requests to be logged completely.

	Erik

On Apr 8, 2010, at 11:45 AM, Rich Cariens wrote:

> Thanks Mark.  That's sort of what I was thinking of doing.
>
> On Thu, Apr 8, 2010 at 10:33 AM, Mark Miller <ma...@gmail.com>  
> wrote:
>
>> On 04/08/2010 09:23 AM, Rich Cariens wrote:
>>
>>> Are there any best practices or built-in support for keeping track  
>>> of
>>> what's
>>> been indexed in a Solr application so as to support a full  
>>> rebuild?  I'm
>>> not
>>> indexing from a single source, but from many, sometimes arbitrary,  
>>> sources
>>> including:
>>>
>>>   1. A document repository that fires events (containing a URL)  
>>> when new
>>>
>>>   documents are added to the repo;
>>>   2. A book-marking service that fires events containing URLs when  
>>> users
>>> of
>>>
>>>   that service bookmark a URL;
>>>   3. More services that raise events that make Solr update docs  
>>> indexed
>>> via
>>>
>>>   (1) or (2) with additional metadata (think user comments, tagging,
>>> etc).
>>>
>>> I'm looking at ~200M documents for the initial launch, with around  
>>> 30K new
>>> docs every day, and many thousands of metadata events every day.
>>>
>>> Do any of you Solr gurus have any suggestions or guidance you can  
>>> share
>>> with
>>> me?
>>>
>>> Thanks in advance,
>>> Rich
>>>
>>>
>>>
>>
>> Pump everything through an UpdateProcessor that writes out SolrXML  
>> as docs
>> go by?
>>
>> --
>> - Mark
>>
>> http://www.lucidimagination.com
>>
>>
>>
>>


Re: Index "transaction log" or equivalent?

Posted by Rich Cariens <ri...@gmail.com>.
Thanks Mark.  That's sort of what I was thinking of doing.

On Thu, Apr 8, 2010 at 10:33 AM, Mark Miller <ma...@gmail.com> wrote:

> On 04/08/2010 09:23 AM, Rich Cariens wrote:
>
>> Are there any best practices or built-in support for keeping track of
>> what's
>> been indexed in a Solr application so as to support a full rebuild?  I'm
>> not
>> indexing from a single source, but from many, sometimes arbitrary, sources
>> including:
>>
>>    1. A document repository that fires events (containing a URL) when new
>>
>>    documents are added to the repo;
>>    2. A book-marking service that fires events containing URLs when users
>> of
>>
>>    that service bookmark a URL;
>>    3. More services that raise events that make Solr update docs indexed
>> via
>>
>>    (1) or (2) with additional metadata (think user comments, tagging,
>> etc).
>>
>> I'm looking at ~200M documents for the initial launch, with around 30K new
>> docs every day, and many thousands of metadata events every day.
>>
>> Do any of you Solr gurus have any suggestions or guidance you can share
>> with
>> me?
>>
>> Thanks in advance,
>> Rich
>>
>>
>>
>
> Pump everything through an UpdateProcessor that writes out SolrXML as docs
> go by?
>
> --
> - Mark
>
> http://www.lucidimagination.com
>
>
>
>

Re: Index "transaction log" or equivalent?

Posted by Mark Miller <ma...@gmail.com>.
On 04/08/2010 09:23 AM, Rich Cariens wrote:
> Are there any best practices or built-in support for keeping track of what's
> been indexed in a Solr application so as to support a full rebuild?  I'm not
> indexing from a single source, but from many, sometimes arbitrary, sources
> including:
>
>     1. A document repository that fires events (containing a URL) when new
>     documents are added to the repo;
>     2. A book-marking service that fires events containing URLs when users of
>     that service bookmark a URL;
>     3. More services that raise events that make Solr update docs indexed via
>     (1) or (2) with additional metadata (think user comments, tagging, etc).
>
> I'm looking at ~200M documents for the initial launch, with around 30K new
> docs every day, and many thousands of metadata events every day.
>
> Do any of you Solr gurus have any suggestions or guidance you can share with
> me?
>
> Thanks in advance,
> Rich
>
>    

Pump everything through an UpdateProcessor that writes out SolrXML as 
docs go by?

-- 
- Mark

http://www.lucidimagination.com