How to integrate Solr into my project

2009-11-03 Thread Caroline Tan
Hi,
I wish to intergrate Solr into my current working project. I've played
around the Solr example and get it started in my tomcat. But the next step
is HOW do i integrate that into my working project? You see, Lucence
provides API and tutorial on what class i need to instanstiate in order to
index and search. But Solr seems to be pretty vague on this..as it is a
working solr search server. Can anybody help me by stating the steps by
steps, what classes that i should look into in order to assimiliate Solr
into my project?
Thanks.

regards
~caroLine


Re: How to integrate Solr into my project

2009-11-03 Thread Caroline Tan
Ya, it's a Java projecti just browse this site you suggested...
http://wiki.apache.org/solr/Solrj

Which means, i declared the dependancy to solr-solrj and solr-core jars,
have those jars added to my project lib and by following the Solrj tutorial,
i will be able to even index a DB table into Solr as well? thanks

~caroLine


2009/11/3 Noble Paul നോബിള്‍ नोब्ळ् 

> is it a java project ?
> did you see this page http://wiki.apache.org/solr/Solrj ?
>
> On Tue, Nov 3, 2009 at 2:25 PM, Caroline Tan 
> wrote:
> > Hi,
> > I wish to intergrate Solr into my current working project. I've played
> > around the Solr example and get it started in my tomcat. But the next
> step
> > is HOW do i integrate that into my working project? You see, Lucence
> > provides API and tutorial on what class i need to instanstiate in order
> to
> > index and search. But Solr seems to be pretty vague on this..as it is a
> > working solr search server. Can anybody help me by stating the steps by
> > steps, what classes that i should look into in order to assimiliate Solr
> > into my project?
> > Thanks.
> >
> > regards
> > ~caroLine
> >
>
>
>
> --
> -
> Noble Paul | Principal Engineer| AOL | http://aol.com
>


Re: How to integrate Solr into my project

2009-11-03 Thread Caroline Tan
Thanks guy..
~caroLine


On Tue, Nov 3, 2009 at 7:32 PM, Israel Ekpo  wrote:

> 2009/11/3 Licinio Fernández Maurelo 
>
> > Hi Caroline,
> >
> > i think that you must take an overview tour ;-) , solrj is just a solr
> java
> > client ...
> >
> > Some clues:
> >
> >
> >   - Define your own index schema
> > <http://wiki.apache.org/solr/SchemaXml>(it's just like a SQL DDL) .
> >   - There are different ways to put docs in your index:
> >  - SolrJ (Solr client for java env)
> >  - DIH <http://wiki.apache.org/solr/DataImportHandler> (Data Import
> >  Handler) this one is prefered when doing a huge data import from
> > DB's, many
> >  source formats are supported.
> >   - Try to perform queries over your fancy-new index ;-). Learn about
> >   searching syntax and
> > faceting<http://wiki.apache.org/solr/SolrFacetingOverview>
> >   .
> >
> >
> >
> >
> >
> >
> > 2009/11/3 Caroline Tan 
> >
> > > Ya, it's a Java projecti just browse this site you suggested...
> > > http://wiki.apache.org/solr/Solrj
> > >
> > > Which means, i declared the dependancy to solr-solrj and solr-core
> jars,
> > > have those jars added to my project lib and by following the Solrj
> > > tutorial,
> > > i will be able to even index a DB table into Solr as well? thanks
> > >
> > > ~caroLine
> > >
> > >
> > > 2009/11/3 Noble Paul നോബിള്‍ नोब्ळ् 
> > >
> > > > is it a java project ?
> > > > did you see this page http://wiki.apache.org/solr/Solrj ?
> > > >
> > > > On Tue, Nov 3, 2009 at 2:25 PM, Caroline Tan  >
> > > > wrote:
> > > > > Hi,
> > > > > I wish to intergrate Solr into my current working project. I've
> > played
> > > > > around the Solr example and get it started in my tomcat. But the
> next
> > > > step
> > > > > is HOW do i integrate that into my working project? You see,
> Lucence
> > > > > provides API and tutorial on what class i need to instanstiate in
> > order
> > > > to
> > > > > index and search. But Solr seems to be pretty vague on this..as it
> is
> > a
> > > > > working solr search server. Can anybody help me by stating the
> steps
> > by
> > > > > steps, what classes that i should look into in order to assimiliate
> > > Solr
> > > > > into my project?
> > > > > Thanks.
> > > > >
> > > > > regards
> > > > > ~caroLine
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > -
> > > > Noble Paul | Principal Engineer| AOL | http://aol.com
> > > >
> > >
> >
> >
> >
> > --
> > Lici
> >
>
>
> I would also recommend buying the Solr 1.4 Enterprise Search Server.
>
> It will give you some tips
>
>
> http://www.amazon.com/Solr-1-4-Enterprise-Search-Server/dp/1847195881/ref=sr_1_1?ie=UTF8&s=books&qid=1257247932&sr=1-1
> --
> "Good Enough" is not good enough.
> To give anything less than your best is to sacrifice the gift.
> Quality First. Measure Twice. Cut Once.
>


Sending file to Solr via HTTP POST

2009-11-03 Thread Caroline Tan
Hi,
>From the Solr wiki on ExtractingRequestHandler tutorial, when it comes to
the part to post file to Solr, it always uses the curl command, e.g.
curl 'http://localhost:8983/*solr*/update/extract?literal.id=doc1&commit=true'
-F myfi...@tutorial.html

I have never used curl and i was thinking is  there any replacement to such
method?

Is there any API that i can use to achieve the same thing in a java
project without relying on CURL? Does SolrJ have such method? Thanks

~caroLine