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 "Dave C." <da...@hotmail.com> on 2007/11/13 23:06:00 UTC
Solr java tutorial
Hi everyone,
My next question is: is there a beginner's tutorial on how to programmatically query solr?
I have seen some users' do things like:
SolrServer server = getSolrServer();
SolrQuery
solrQuery = new SolrQuery();
solrQuery.setQuery(..);
QueryResponse rsp = server.query(solrQuery);
But is there some tutorial that outlines the basic classes to use, etc?
I know there is a javadoc but it's not helpful if I don't know what to use.
Thanks a lot,
David
_________________________________________________________________
Help yourself to FREE treats served up daily at the Messenger Café. Stop by today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline
RE: Solr java tutorial
Posted by Will Johnson <wi...@gmail.com>.
Check out:
http://svn.apache.org/viewvc/lucene/solr/trunk/client/java/solrj/test/org/ap
ache/solr/client/solrj/SolrQueryTest.java?revision=555343&view=markup
or
http://svn.apache.org/viewvc/lucene/solr/trunk/client/java/solrj/test/org/ap
ache/solr/client/solrj/SolrQueryTest.java?revision=555343&view=markup
as for stability, I've been using solrj for ~6 months now and it's been
great. You should also be able to use the 1.3 pre-release solrj jar files
against a solr 1.2 instance.
- will
-----Original Message-----
From: Dave C. [mailto:daft.davy@hotmail.com]
Sent: Tuesday, November 13, 2007 5:06 PM
To: solr-user@lucene.apache.org
Subject: Solr java tutorial
Hi everyone,
My next question is: is there a beginner's tutorial on how to
programmatically query solr?
I have seen some users' do things like:
SolrServer server = getSolrServer();
SolrQuery
solrQuery = new SolrQuery();
solrQuery.setQuery(..);
QueryResponse rsp = server.query(solrQuery);
But is there some tutorial that outlines the basic classes to use, etc?
I know there is a javadoc but it's not helpful if I don't know what to use.
Thanks a lot,
David
_________________________________________________________________
Help yourself to FREE treats served up daily at the Messenger Café. Stop by
today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWL
tagline
Re: Solr java tutorial
Posted by Mike Klaas <mi...@gmail.com>.
Not really--there have been a few threads on this topic recently.
Perhaps in a couple months?
It may depend on the timing of the lucene release.
-MIke
On 13-Nov-07, at 3:41 PM, Dave C. wrote:
> Ah...
> :(
>
> Is there a timeline for the 1.3 release?
>
> - david
>
>
>> Date: Tue, 13 Nov 2007 18:33:01 -0500
>> From: ryantxu@gmail.com
>> To: solr-user@lucene.apache.org
>> Subject: Re: Solr java tutorial
>>
>> Dave C. wrote:
>>> I'm really confused...is SolrJ coming in Solr 1.3 (which hasn't
>>> been released yet)?
>>> It doesn't seem to be found in Solr 1.2 which I am using.
>>>
>>> please enlighten..
>>>
>>
>> correct. solrj is in solr-1.3-dev -- to use it you need to use a
>> nightly
>> build.
>>
>> It has not been officially released yet. While it is quite
>> stable, the
>> interfaces are still subject to change until the final release.
>>
>> ryan
>
> _________________________________________________________________
> Boo! Scare away worms, viruses and so much more! Try Windows Live
> OneCare!
> http://onecare.live.com/standard/en-us/purchase/trial.aspx?
> s_cid=wl_hotmailnews
RE: Solr java tutorial
Posted by "Dave C." <da...@hotmail.com>.
Ah...
:(
Is there a timeline for the 1.3 release?
- david
> Date: Tue, 13 Nov 2007 18:33:01 -0500
> From: ryantxu@gmail.com
> To: solr-user@lucene.apache.org
> Subject: Re: Solr java tutorial
>
> Dave C. wrote:
> > I'm really confused...is SolrJ coming in Solr 1.3 (which hasn't been released yet)?
> > It doesn't seem to be found in Solr 1.2 which I am using.
> >
> > please enlighten..
> >
>
> correct. solrj is in solr-1.3-dev -- to use it you need to use a nightly
> build.
>
> It has not been officially released yet. While it is quite stable, the
> interfaces are still subject to change until the final release.
>
> ryan
_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
Re: Solr java tutorial
Posted by Ryan McKinley <ry...@gmail.com>.
Dave C. wrote:
> I'm really confused...is SolrJ coming in Solr 1.3 (which hasn't been released yet)?
> It doesn't seem to be found in Solr 1.2 which I am using.
>
> please enlighten..
>
correct. solrj is in solr-1.3-dev -- to use it you need to use a nightly
build.
It has not been officially released yet. While it is quite stable, the
interfaces are still subject to change until the final release.
ryan
RE: Solr java tutorial
Posted by "Dave C." <da...@hotmail.com>.
I'm really confused...is SolrJ coming in Solr 1.3 (which hasn't been released yet)?
It doesn't seem to be found in Solr 1.2 which I am using.
please enlighten..
- David
> Date: Tue, 13 Nov 2007 17:21:13 -0500
> From: ryantxu@gmail.com
> To: solr-user@lucene.apache.org
> Subject: Re: Solr java tutorial
>
>
> Not yet, but there should be!
>
> Currently people learn it from looking at the source and tests. I
> started to add something to:
>
> http://wiki.apache.org/solr/Solrj
>
> it (obviously) still needs work.
>
> If you are using eclipse (or similar), after typing "solrQuery." you
> should get a drop down of all the available options - i find this
> invaluable for learning what is possible.
>
> ryan
>
>
>
> Dave C. wrote:
> > Hi everyone,
> >
> > My next question is: is there a beginner's tutorial on how to programmatically query solr?
> > I have seen some users' do things like:
> >
> >
> > SolrServer server = getSolrServer();
> >
> > SolrQuery
> > solrQuery = new SolrQuery();
> >
> >
> > solrQuery.setQuery(..);
> >
> >
> > QueryResponse rsp = server.query(solrQuery);
> >
> > But is there some tutorial that outlines the basic classes to use, etc?
> > I know there is a javadoc but it's not helpful if I don't know what to use.
> >
> > Thanks a lot,
> > David
> >
> > _________________________________________________________________
> > Help yourself to FREE treats served up daily at the Messenger Café. Stop by today.
> > http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline
>
_________________________________________________________________
Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033
Re: Solr java tutorial
Posted by Ryan McKinley <ry...@gmail.com>.
Not yet, but there should be!
Currently people learn it from looking at the source and tests. I
started to add something to:
http://wiki.apache.org/solr/Solrj
it (obviously) still needs work.
If you are using eclipse (or similar), after typing "solrQuery." you
should get a drop down of all the available options - i find this
invaluable for learning what is possible.
ryan
Dave C. wrote:
> Hi everyone,
>
> My next question is: is there a beginner's tutorial on how to programmatically query solr?
> I have seen some users' do things like:
>
>
> SolrServer server = getSolrServer();
>
> SolrQuery
> solrQuery = new SolrQuery();
>
>
> solrQuery.setQuery(..);
>
>
> QueryResponse rsp = server.query(solrQuery);
>
> But is there some tutorial that outlines the basic classes to use, etc?
> I know there is a javadoc but it's not helpful if I don't know what to use.
>
> Thanks a lot,
> David
>
> _________________________________________________________________
> Help yourself to FREE treats served up daily at the Messenger Café. Stop by today.
> http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline