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 gi...@gmx.de on 2008/11/13 12:20:31 UTC

full-import with solrj (solr Java client)

Hello,

I want to run a (DataImportHandler) full-import with solrj. I understand how to send queries with SolrQuery etc., but I don't know how to construct the "dataimport?command=full-import&commit=true" path. Which classes do I have to use? SolrRequest? It would be very nice if you could post some code examples.

Thank you
Gisto
-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

RE: STATS functions ....

Posted by souravm <SO...@infosys.com>.
Thanks Erik.

Regards,
Sourav

-----Original Message-----
From: Erik Hatcher [mailto:erik@ehatchersolutions.com] 
Sent: Thursday, November 13, 2008 6:29 PM
To: solr-user@lucene.apache.org
Subject: Re: STATS functions ....

StatsComponent is in trunk now, committed after the 1.3 release.  <https://issues.apache.org/jira/browse/SOLR-680 
 > - note the "Status" and the "Subversion Commits" stuff there (just  
trying to help folks help themselves track this stuff :).

I suspect the code could be pulled from that issue and applied to 1.3  
release, even JAR'ing it up separately, and tossing it in as a  
"plugin".  We probably should be creating all these sorts of goodies  
and independent modules of code that aren't "core", but that gets  
fuzzy to say what's core and what isn't too.

	Erik


On Nov 13, 2008, at 8:26 PM, souravm wrote:

>
> Hi,
>
> As I understand the STATS functions (Min, Max, Average, Standard  
> Deviation etc.) would be available in Solr 1.4.
>
> Just wondering if they are already there in the latest trunk. Else  
> can anyone suggest any other tool which can be used with Solr 1.3 to  
> achieve this requirement ?
>
> Regards,
> Sourav
>
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION  
> intended solely
> for the use of the addressee(s). If you are not the intended  
> recipient, please
> notify the sender by e-mail and delete the original message.  
> Further, you are not
> to copy, disclose, or distribute this e-mail or its contents to any  
> other person and
> any such actions are unlawful. This e-mail may contain viruses.  
> Infosys has taken
> every reasonable precaution to minimize this risk, but is not liable  
> for any damage
> you may sustain as a result of any virus in this e-mail. You should  
> carry out your
> own virus checks before opening the e-mail or attachment. Infosys  
> reserves the
> right to monitor and review the content of all messages sent to or  
> from this e-mail
> address. Messages sent to or from this e-mail address may be stored  
> on the
> Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***


Re: STATS functions ....

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
StatsComponent is in trunk now, committed after the 1.3 release.  <https://issues.apache.org/jira/browse/SOLR-680 
 > - note the "Status" and the "Subversion Commits" stuff there (just  
trying to help folks help themselves track this stuff :).

I suspect the code could be pulled from that issue and applied to 1.3  
release, even JAR'ing it up separately, and tossing it in as a  
"plugin".  We probably should be creating all these sorts of goodies  
and independent modules of code that aren't "core", but that gets  
fuzzy to say what's core and what isn't too.

	Erik


On Nov 13, 2008, at 8:26 PM, souravm wrote:

>
> Hi,
>
> As I understand the STATS functions (Min, Max, Average, Standard  
> Deviation etc.) would be available in Solr 1.4.
>
> Just wondering if they are already there in the latest trunk. Else  
> can anyone suggest any other tool which can be used with Solr 1.3 to  
> achieve this requirement ?
>
> Regards,
> Sourav
>
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION  
> intended solely
> for the use of the addressee(s). If you are not the intended  
> recipient, please
> notify the sender by e-mail and delete the original message.  
> Further, you are not
> to copy, disclose, or distribute this e-mail or its contents to any  
> other person and
> any such actions are unlawful. This e-mail may contain viruses.  
> Infosys has taken
> every reasonable precaution to minimize this risk, but is not liable  
> for any damage
> you may sustain as a result of any virus in this e-mail. You should  
> carry out your
> own virus checks before opening the e-mail or attachment. Infosys  
> reserves the
> right to monitor and review the content of all messages sent to or  
> from this e-mail
> address. Messages sent to or from this e-mail address may be stored  
> on the
> Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***


STATS functions ....

Posted by souravm <SO...@infosys.com>.
Hi,

As I understand the STATS functions (Min, Max, Average, Standard Deviation etc.) would be available in Solr 1.4.

Just wondering if they are already there in the latest trunk. Else can anyone suggest any other tool which can be used with Solr 1.3 to achieve this requirement ?

Regards,
Sourav

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

Re: full-import with solrj (solr Java client)

Posted by gi...@gmx.de.
Erik, thanks a lot for this example.

Now, all works fine :-)



-------- Original-Nachricht --------
> Datum: Thu, 13 Nov 2008 06:53:36 -0500
> Von: Erik Hatcher <er...@ehatchersolutions.com>
> An: solr-user@lucene.apache.org
> Betreff: Re: full-import with solrj (solr Java client)

> On Nov 13, 2008, at 6:20 AM, gistolero@gmx.de wrote:
> > I want to run a (DataImportHandler) full-import with solrj. I  
> > understand how to send queries with SolrQuery etc., but I don't know  
> > how to construct the "dataimport?command=full-import&commit=true"  
> > path. Which classes do I have to use? SolrRequest? It would be very  
> > nice if you could post some code examples.
> 
> I've added an example here:  <http://wiki.apache.org/solr/SolJava>
> 
> Basically any request handler can be easily called from SolrJ, using  
> ModifiableSolrParams, and making sure wt is set, along with the other  
> parameters.
> 
> 	Erik

-- 
Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a

Re: full-import with solrj (solr Java client)

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Nov 13, 2008, at 6:20 AM, gistolero@gmx.de wrote:
> I want to run a (DataImportHandler) full-import with solrj. I  
> understand how to send queries with SolrQuery etc., but I don't know  
> how to construct the "dataimport?command=full-import&commit=true"  
> path. Which classes do I have to use? SolrRequest? It would be very  
> nice if you could post some code examples.

I've added an example here:  <http://wiki.apache.org/solr/SolJava>

Basically any request handler can be easily called from SolrJ, using  
ModifiableSolrParams, and making sure wt is set, along with the other  
parameters.

	Erik