Default result rows
Hi! Where can I define, how many rows must be returned in the result? Default is 10, and specifying other value each time through URL or advanced interface isn't comfortable. Ar cieņu, Mihails
Deleting Solr index
How can I clear the whole Solr index? Ar cieņu, Mihails
Re: Default result rows
Doesn't work :(. None of the parameters in the defaults section is being read. Solr still uses the predefined default parameters. P.S. In defaults section I should be able specify also what stylesheet to use, right? Quoting Shalin Shekhar Mangar : You can configure this in solrconfig.xml under the quot;defaultsquot; section for StandardRequestHandler lt;requestHandler name=quot;standardquot; class=quot;solr.StandardRequestHandlerquot; default=quot;truequot;gt; lt;!-- default values for query parameters --gt; lt;lst name=quot;defaultsquot;gt; lt;str name=quot;echoParamsquot;gt;explicitlt;/strgt; lt;int name=quot;rowsquot;gt;30lt;/intgt; lt;str name=quot;flquot;gt;*lt;/strgt; lt;str name=quot;versionquot;gt;2.1lt;/strgt; lt;/lstgt; lt;/requestHandlergt; 2008/6/18 Mihails Agafonovs lt;[EMAIL PROTECTED]gt;: gt; Hi! gt; gt; Where can I define, how many rows must be returned in the result? gt; Default is 10, and specifying other value each time through URL or gt; advanced interface isn't comfortable. gt; Ar cie#326;u, Mihails -- Regards, Shalin Shekhar Mangar. Ar cieņu, Mihails Links: -- [1] mailto:[EMAIL PROTECTED]
Stylesheet
Hi! How can I apply stylesheet to the search result? I mean, where can I define, what stylesheet to use? Ar cieņu, Mihails
Re: My First Solr
Hi, Thomas! Please, can you give me instructions on how did you installed Solr on Tomcat? Quoting Thomas Lauer : HI, i have installed my first solr on tomcat. I have modify my shema.xml for my XMLacute;s and I have import with the post.jar some xml files. tomcat runs solr/admin runs post.jar imports files but I canacute;t find my files. the reponse ist always 0 0 10 0 on KIS 2.2 My files in the attachment Regards Thomas Ar cieņu, Mihails Links: -- [1] mailto:[EMAIL PROTECTED]
Re: DataImport
I'm stuck... I now have /tomcat5.5/webapps/solr (exploded solr.war), /tomcat5.5/webapps/solr/solr-example/. I've ran export JAVA_OPTS=$JAVA_OPTS-Dsolr.solr.home=/usr/share/tomcat5.5/webapps/solr/example/solr/ to make /example/solr/ as a home directory. What am I doing wrong? Quoting Shalin Shekhar Mangar : Hi Mihails, The solr home is a directory which contains the conf/ and data/ folders. The conf folder contains solrconfig.xml, schema.xml and other such configuration files. The data/ folder contains the index files. Other than adding the war file to tomcat, you also need to designate a certain folder as solr home, so that solr knows from where to load it's configuration. By default, solr searches for a folder named solr under the current working directory (pwd) to use as home. There are other ways of configuring it as given in solr wiki. Hope that helpes. 2008/6/11 Mihails Agafonovs : I've already done that, but cannot access solr via web, and apache log says something wrong with solr home directory. - Couldn't start SOLR. Check solr/home property. - Quoting Chakraborty, Kishore K. : Mihails, Put the solr.war into the webapps directory and restart tomcat, then follow up the console and you'll see messages saying solr.war is getting deployed. Use a recent nightly build as that has the dataimport related patch included. Regards Kishore. -Original Message- From: Mihails Agafonovs [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 1:13 PM To: solr-user@lucene.apache.org Subject: Re: DataImport If I've copied the solr.war under tomcat/webapps directory, after restarting it the archive extracts itself and I get solr directory. Why do I need to set example-solr-home/solr, which is not in the /webapps directory, as home directory? Quoting Shalin Shekhar Mangar : No, the steps are as follows: 1. Download the example-solr-home.jar from the DataImportHandler wiki page 2. Extract it. You'll find a folder named example-solr-home and a solr.war file after extraction 3. Copy the solr.war to tomcat_home/webapps. You don't need any other solr instance. This war is self-sufficient. 4. You need to set the example-solr-home/solr folder as the solr home folder. For instructions on how to do that, look at http://wiki.apache.org/solr/SolrTomcat From the port number of the URL you are trying, it seems that you're using the Jetty supplied with Solr instead of Tomcat. 2008/6/9 Mihails Agafonovs : I've placed the solr.war under the tomcat directory, restarted tomcat to deploy the solr.war. But still... there is no .jar, no folder named example-data-config, and hitting http://localhost:8983/solr/dataimport doesn't work. Do I need the original Solr instance to use this .war with? Quoting Shalin Shekhar Mangar : 1. Correct, there is no jar. You can use the solr.war file. If you really need a jar, you'll need to use the SOLR-469.patch at http://issues.apache.org/jira/browse/SOLR-469 and build solr from source after applying that patch. 2. The jar contains a folder named example-solr-home. Please check again. Please let me know if you run into any problems. 2008/6/9 Mihails Agafonovs : Looked through the tutorial on data import, section Full Import Example. 1) Where is this dataimport.jar? There is no such file in the extracted example-solr-home.jar. 2) Use the solr folder inside example-data-config folder as your solr home. What does this mean? Anyway, there is no folder example-data-config. Ar cieņu, Mihails -- Regards, Shalin Shekhar Mangar. Ar cieņu, Mihails Links: -- [1] mailto:[EMAIL PROTECTED] -- Regards, Shalin Shekhar Mangar. Ar cieņu, Mihails Links: -- [1] mailto:[EMAIL PROTECTED] Ar cieņu, Mihails Links: -- [1] mailto:[EMAIL PROTECTED] -- Regards, Shalin Shekhar Mangar. Ar cieņu, Mihails Links: -- [1] mailto:[EMAIL PROTECTED]
Re: DataImport
Exception in Lucene Index Updater. Anyway, for some reasons I'm able to start Solr only using its own Jetty. Everything else works fine on my Tomcat, except Solr. Quoting Shalin Shekhar Mangar : Ok, let's start again from scratch with a clean Tomcat installation. 1. Download example-solr-home.jar from the wiki and extract it to a local folder for example to /home// 2. You will now see a folder called example-solr-home where you extracted the jar file in the above step 3. Copy /home//example-solr-home/solr.war to /tomcat5.5/webapps/solr.war 4. export JAVA_OPTS=-Dsolr.solr.home=/home//example-solr-home/solr 5. start tomcat from the same shell after exporting the above variable Verify that tomcat starts without showing any exceptions in the logs. Now you will be able to run the examples given in the DataImportHandler wiki. 2008/6/11 Mihails Agafonovs : I'm stuck... I now have /tomcat5.5/webapps/solr (exploded solr.war), /tomcat5.5/webapps/solr/solr-example/. I've ran export JAVA_OPTS=$JAVA_OPTS-Dsolr.solr.home=/usr/share/tomcat5.5/webapps/solr/example/solr/ to make /example/solr/ as a home directory. What am I doing wrong? Quoting Shalin Shekhar Mangar : Hi Mihails, The solr home is a directory which contains the conf/ and data/ folders. The conf folder contains solrconfig.xml, schema.xml and other such configuration files. The data/ folder contains the index files. Other than adding the war file to tomcat, you also need to designate a certain folder as solr home, so that solr knows from where to load it's configuration. By default, solr searches for a folder named solr under the current working directory (pwd) to use as home. There are other ways of configuring it as given in solr wiki. Hope that helpes. 2008/6/11 Mihails Agafonovs : I've already done that, but cannot access solr via web, and apache log says something wrong with solr home directory. - Couldn't start SOLR. Check solr/home property. - Quoting Chakraborty, Kishore K. : Mihails, Put the solr.war into the webapps directory and restart tomcat, then follow up the console and you'll see messages saying solr.war is getting deployed. Use a recent nightly build as that has the dataimport related patch included. Regards Kishore. -Original Message- From: Mihails Agafonovs [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 1:13 PM To: solr-user@lucene.apache.org Subject: Re: DataImport If I've copied the solr.war under tomcat/webapps directory, after restarting it the archive extracts itself and I get solr directory. Why do I need to set example-solr-home/solr, which is not in the /webapps directory, as home directory? Quoting Shalin Shekhar Mangar : No, the steps are as follows: 1. Download the example-solr-home.jar from the DataImportHandler wiki page 2. Extract it. You'll find a folder named example-solr-home and a solr.war file after extraction 3. Copy the solr.war to tomcat_home/webapps. You don't need any other solr instance. This war is self-sufficient. 4. You need to set the example-solr-home/solr folder as the solr home folder. For instructions on how to do that, look at http://wiki.apache.org/solr/SolrTomcat From the port number of the URL you are trying, it seems that you're using the Jetty supplied with Solr instead of Tomcat. 2008/6/9 Mihails Agafonovs : I've placed the solr.war under the tomcat directory, restarted tomcat to deploy the solr.war. But still... there is no .jar, no folder named example-data-config, and hitting http://localhost:8983/solr/dataimport doesn't work. Do I need the original Solr instance to use this .war with? Quoting Shalin Shekhar Mangar : 1. Correct, there is no jar. You can use the solr.war file. If you really need a jar, you'll need to use the SOLR-469.patch at http://issues.apache.org/jira/browse/SOLR-469 and build solr from source after applying that patch. 2. The jar contains a folder named example-solr-home. Please check again. Please let me know if you run into any problems. 2008/6/9 Mihails Agafonovs : Looked through the tutorial on data import, section Full Import Example. 1) Where is this dataimport.jar? There is no such file in the extracted example-solr-home.jar. 2) Use the solr folder inside example-data-config folder as your solr home. What does this mean? Anyway, there is no folder example-data-config. Ar cieņu, Mihails -- Regards, Shalin Shekhar Mangar. Ar cieņu, Mihails Links: -- [1] mailto:[EMAIL PROTECTED] -- Regards, Shalin
Overall
Hi! Some questions: 1) Is it possible to make Solr to use, for example, MySQL database, or it only supports *.xml files as a database? 2) Is there a way to add data in the search database using some online interface, or the only way is manually adding the data in the *.xml files? 3) Is there any guide on how to implement Solr to the web-site? Ar cieņu, Mihails
Re: Overall
1) ok 2) This means developing some custom program, so there is no such functionality in Solr :( 3) I have some connection problems and I really can't load these mailing list archives at all! Anyway, I want to understand, how can I use Solr in my site or any other usage? Quoting Umar Shah : 2008/6/9 Mihails Agafonovs : Hi! Some questions: 1) Is it possible to make Solr to use, for example, MySQL database, or it only supports *.xml files as a database? you can use DataImportHandler to index from MySql (or other databases) 2) Is there a way to add data in the search database using some online interface, or the only way is manually adding the data in the *.xml files? you can generate the XMLs from a program that can read from the data source or use some of the solr clients (java, python, ruby) to update the index using the provided APIs. 3) Is there any guide on how to implement Solr to the web-site? whatever you have is in the wiki and the mailing archives, if you cant find it there, I am afraid it is not available. Ar cieņu, Mihails Ar cieņu, Mihails Links: -- [1] mailto:[EMAIL PROTECTED]
DataImport
Looked through the tutorial on data import, section Full Import Example. 1) Where is this dataimport.jar? There is no such file in the extracted example-solr-home.jar. 2) Use the solr folder inside example-data-config folder as your solr home. What does this mean? Anyway, there is no folder example-data-config. Ar cieņu, Mihails
Re: DataImport
I've placed the solr.war under the tomcat directory, restarted tomcat to deploy the solr.war. But still... there is no .jar, no folder named example-data-config, and hitting http://localhost:8983/solr/dataimport doesn't work. Do I need the original Solr instance to use this .war with? Quoting Shalin Shekhar Mangar : 1. Correct, there is no jar. You can use the solr.war file. If you really need a jar, you'll need to use the SOLR-469.patch at http://issues.apache.org/jira/browse/SOLR-469 and build solr from source after applying that patch. 2. The jar contains a folder named example-solr-home. Please check again. Please let me know if you run into any problems. 2008/6/9 Mihails Agafonovs : Looked through the tutorial on data import, section Full Import Example. 1) Where is this dataimport.jar? There is no such file in the extracted example-solr-home.jar. 2) Use the solr folder inside example-data-config folder as your solr home. What does this mean? Anyway, there is no folder example-data-config. Ar cieņu, Mihails -- Regards, Shalin Shekhar Mangar. Ar cieņu, Mihails Links: -- [1] mailto:[EMAIL PROTECTED]