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 Tim Archambault <jo...@gmail.com> on 2006/06/01 18:42:01 UTC

solr newbie

Trying to run the test tutorial to index an xml file and keep getting an
error message: curl: command not found?

Any help is greatly appreciated.

RE: solr newbie

Posted by Darren Vengroff <ve...@gmail.com>.
See http://issues.apache.org/jira/browse/SOLR-20.

-D

-----Original Message-----
From: Yonik Seeley [mailto:yseeley@gmail.com] 
Sent: Thursday, June 01, 2006 10:15 PM
To: solr-user@lucene.apache.org
Subject: Re: solr newbie

On 6/2/06, Darren Vengroff <ve...@gmail.com> wrote:
> I wrote just such a client within the last 24h to support load-testing
Solr
> for my application.  The client stub is simple and independent of my
> particular application, so it would be easy for me to contribute it if
there
> is interest.  It has methods to add() a document or collection of
documents,
> and commit() and optimize().

It would be great to see what you have!
If you would like to contribute it, or get feedback on the API, please
open a new JIRA bug (feature) and add the code there.

-Yonik


Re: solr newbie

Posted by Yonik Seeley <ys...@gmail.com>.
On 6/2/06, Darren Vengroff <ve...@gmail.com> wrote:
> I wrote just such a client within the last 24h to support load-testing Solr
> for my application.  The client stub is simple and independent of my
> particular application, so it would be easy for me to contribute it if there
> is interest.  It has methods to add() a document or collection of documents,
> and commit() and optimize().

It would be great to see what you have!
If you would like to contribute it, or get feedback on the API, please
open a new JIRA bug (feature) and add the code there.

-Yonik

Re: solr newbie

Posted by Raghavendra Prabhu <rr...@gmail.com>.
I would definitely like to use the code to run the same set of tests with my
application

Regards,
Prabhu


On 6/2/06, Darren Vengroff <ve...@gmail.com> wrote:
>
> I wrote just such a client within the last 24h to support load-testing
> Solr
> for my application.  The client stub is simple and independent of my
> particular application, so it would be easy for me to contribute it if
> there
> is interest.  It has methods to add() a document or collection of
> documents,
> and commit() and optimize().
>
> -D
>
> -----Original Message-----
> From: Yonik Seeley [mailto:yseeley@gmail.com]
> Sent: Thursday, June 01, 2006 10:44 AM
> To: solr-user@lucene.apache.org
> Subject: Re: solr newbie
>
> We don't have it yet, but there really should be a simple Java client
> library that creates the XML add commands and handles sending them to
> the server.
>
>

RE: solr newbie

Posted by Darren Vengroff <ve...@gmail.com>.
I wrote just such a client within the last 24h to support load-testing Solr
for my application.  The client stub is simple and independent of my
particular application, so it would be easy for me to contribute it if there
is interest.  It has methods to add() a document or collection of documents,
and commit() and optimize().

-D

-----Original Message-----
From: Yonik Seeley [mailto:yseeley@gmail.com] 
Sent: Thursday, June 01, 2006 10:44 AM
To: solr-user@lucene.apache.org
Subject: Re: solr newbie

We don't have it yet, but there really should be a simple Java client
library that creates the XML add commands and handles sending them to
the server.


Re: solr newbie

Posted by Tim Archambault <ta...@bangordailynews.net>.
Great thanks. I manage a newspaper website in Maine USA with about
400,000-500,000 documents/database records (if not more) and I am going to
try and create a solr search engine for the site. We'll see how it goes.
I've been using a "bastardized" lucene search for my site up to now, but
this looks much better.

On 6/1/06, Yonik Seeley <ys...@gmail.com> wrote:
>
> On 6/1/06, Tim Archambault <ta...@bangordailynews.net> wrote:
> > I found the "web" options. Thank you very much. While that is installing
> > incrementally, two last questions.
> >
> > Are there any example stylesheets to review to see how the data flows
> into
> > the layout?
> > How would one go about injecting database information into the indexs
> > without having to create XML files for each one?
>
> It's most efficient to make a "builder" application that reads from
> the database, constructs XML documents *in memory* and sends them to
> the Solr server.  Multiple threads/connections open to the Solr server
> will speed up indexing and hide any request-response latency of
> individual adds.
>
> We don't have it yet, but there really should be a simple Java client
> library that creates the XML add commands and handles sending them to
> the server.
>
> Also on the "todo" list is indexing directly from a SQL database w/o
> the user having to write any code except select statements.
>
> -Yonik
>

Re: solr newbie

Posted by Yonik Seeley <ys...@gmail.com>.
On 6/1/06, Tim Archambault <ta...@bangordailynews.net> wrote:
> I found the "web" options. Thank you very much. While that is installing
> incrementally, two last questions.
>
> Are there any example stylesheets to review to see how the data flows into
> the layout?
> How would one go about injecting database information into the indexs
> without having to create XML files for each one?

It's most efficient to make a "builder" application that reads from
the database, constructs XML documents *in memory* and sends them to
the Solr server.  Multiple threads/connections open to the Solr server
will speed up indexing and hide any request-response latency of
individual adds.

We don't have it yet, but there really should be a simple Java client
library that creates the XML add commands and handles sending them to
the server.

Also on the "todo" list is indexing directly from a SQL database w/o
the user having to write any code except select statements.

-Yonik

Re: solr newbie

Posted by Tim Archambault <ta...@bangordailynews.net>.
I found the "web" options. Thank you very much. While that is installing
incrementally, two last questions.

Are there any example stylesheets to review to see how the data flows into
the layout?
How would one go about injecting database information into the indexs
without having to create XML files for each one?

Thanks again.

Tim

On 6/1/06, Yonik Seeley <ys...@gmail.com> wrote:
>
> On 6/1/06, Tim Archambault <ta...@bangordailynews.net> wrote:
> > I'll need to install cygwin again I think. Thanks.
>
> Don't uninstall cygwin... just re-run the cygwin setup.exe and it will
> do incremental updates, installing packages that have changed, and
> allowing you to select new packages to install.
>
> -Yonik
>

Re: solr newbie

Posted by Yonik Seeley <ys...@gmail.com>.
On 6/1/06, Tim Archambault <ta...@bangordailynews.net> wrote:
> I'll need to install cygwin again I think. Thanks.

Don't uninstall cygwin... just re-run the cygwin setup.exe and it will
do incremental updates, installing packages that have changed, and
allowing you to select new packages to install.

-Yonik

Re: solr newbie

Posted by Tim Archambault <ta...@bangordailynews.net>.
I'll need to install cygwin again I think. Thanks.


On 6/1/06, Yonik Seeley <ys...@gmail.com> wrote:
>
> On 6/1/06, Tim Archambault <ta...@bangordailynews.net> wrote:
> > Don't understand what "web category" means. SH.
>
> The cygwin installer has different categories of packages...
> "base","devel",etc.
> If you are looking for the curl package, it should be filed under
> "web".  It's not installed by default, so you need to select it.
>
> -Yonik
>

Re: solr newbie

Posted by Yonik Seeley <ys...@gmail.com>.
On 6/1/06, Tim Archambault <ta...@bangordailynews.net> wrote:
> Don't understand what "web category" means. SH.

The cygwin installer has different categories of packages... "base","devel",etc.
If you are looking for the curl package, it should be filed under
"web".  It's not installed by default, so you need to select it.

-Yonik

Re: solr newbie

Posted by Tim Archambault <ta...@bangordailynews.net>.
Thanks Yonik. All looks good except for the statement: curl installed from
the "Web" category.

Don't understand what "web category" means. SH.

On 6/1/06, Yonik Seeley <ys...@gmail.com> wrote:
>
> Hi Tim,
>
> Curl is a little command-line networking tool.  The easiest way to get
> it is cygwin if you are not on a UNIX system.
>
> See the 'Requirements" section of the tutorial:
> 3. On Win32, cygwin, for shell support. (If you plan to use Subversion
> on Win32, be sure to select the subversion package when you install,
> in the "Devel" category.) This tutorial will assume that "sh" is in
> your PATH, and that you have "curl" installed from the "Web" category.
>
> -Yonik
>
> On 6/1/06, Tim Archambault <jo...@gmail.com> wrote:
> > Trying to run the test tutorial to index an xml file and keep getting an
> > error message: curl: command not found?
> >
> > Any help is greatly appreciated.
>

Re: solr newbie

Posted by Yonik Seeley <ys...@gmail.com>.
Hi Tim,

Curl is a little command-line networking tool.  The easiest way to get
it is cygwin if you are not on a UNIX system.

See the 'Requirements" section of the tutorial:
3. On Win32, cygwin, for shell support. (If you plan to use Subversion
on Win32, be sure to select the subversion package when you install,
in the "Devel" category.) This tutorial will assume that "sh" is in
your PATH, and that you have "curl" installed from the "Web" category.

-Yonik

On 6/1/06, Tim Archambault <jo...@gmail.com> wrote:
> Trying to run the test tutorial to index an xml file and keep getting an
> error message: curl: command not found?
>
> Any help is greatly appreciated.

RE: solr newbie

Posted by Darren Vengroff <ve...@gmail.com>.
You can download curl from http://curl.haxx.se/ if you don't have it on your
machine.

-D

-----Original Message-----
From: Tim Archambault [mailto:joetomgo@gmail.com] 
Sent: Thursday, June 01, 2006 9:42 AM
To: solr-user@lucene.apache.org
Subject: solr newbie

Trying to run the test tutorial to index an xml file and keep getting an
error message: curl: command not found?

Any help is greatly appreciated.