First, you need a schema. This is like a database schema, but has only
one table, and describes how your data should be stored.
There are 5 ways to index data into Solr. These are in order of difficulty.
1. Upload in the Solr XML format.
2. Write a program to do HTTP calls-
- in Java the SolrJ library makes this easy, there are other
client libraries for Ruby, Perl, etc.
3. Upload using the 'extraction' feature.
4. Use the DataImportHandler.
5. Write an UpdateHandler.
I would suggest #2: write a program using the SolrJ library or a
client in another language. Preprocess your logs, assign the fields to
your schema and call the library.
Before you do this, set up your schema and make some sample documents
in the Solr format and upload them. solr/example/exampledocs is a
great way to start.
Lance
On Tue, Jan 18, 2011 at 8:40 PM, Dinesh <[email protected]> wrote:
>
> i just started to use use.. tried to customize it.. i want to index GB's of
> log file in real time basis.. i found i should create an handler that
> converts my raw log into XML.. anyone please help me in starting with
> creating an handler for log files..
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Starting-with-handlers-tp2285253p2285253.html
> Sent from the Solr - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Lance Norskog
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]