You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Dinesh <md...@karunya.edu.in> on 2011/01/19 05:40:04 UTC
Starting with handlers
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Starting with handlers
Posted by Lance Norskog <go...@gmail.com>.
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 <md...@karunya.edu.in> 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: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
--
Lance Norskog
goksron@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
Re: Starting with handlers
Posted by Gora Mohanty <go...@mimirtech.com>.
On Wed, Jan 19, 2011 at 10:10 AM, Dinesh <md...@karunya.edu.in> 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..
[...]
With all due respect, this is getting to be quite annoying.
The proper place for such questions is on the solr-user
list, but you somehow seem to want to ignore replies
sent to your queries on that list.
If starting multiple threads on that list did not work,
switching to this list will definitely not work, as it is not
the proper forum.
Could you go back to the solr-user list, and address
replies there?
Regards,
Gora
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org