RE: [jira] Updated: (SOLR-173) "too many open files" with posting toupdate handler
I remember when using Lucene directly in a project, I noticed this error only comes up if the system is deployed on UNIX boxes..in our case SOLARIS. You can increase the number of allowed "open files" on unix ..i forget the command but the default is 256. We increased it, and the problem went away.(but the patch looks to address it programmatically as well.) Jeryl Cook -Original Message- From: Ryan McKinley (JIRA) [mailto:[EMAIL PROTECTED] Sent: Saturday, February 24, 2007 7:43 PM To: solr-dev@lucene.apache.org Subject: [jira] Updated: (SOLR-173) "too many open files" with posting toupdate handler [ https://issues.apache.org/jira/browse/SOLR-173?page=com.atlassian.jira.p lugin.system.issuetabpanels:all-tabpanel ] Ryan McKinley updated SOLR-173: --- Attachment: SOLR-173-open-files-bug.patch modifying for problem #2 was easier then i expected, it only touches JSONResponseWriter.java TextResponseWriter.java XMLWriter.java rather then initalize the searcher in the constructor, they load a local SolrIndexSearcher inside the writeDocList() function > "too many open files" with posting to update handler > > > Key: SOLR-173 > URL: https://issues.apache.org/jira/browse/SOLR-173 > Project: Solr > Issue Type: Bug > Components: update >Affects Versions: 1.2 >Reporter: Ryan McKinley > Attachments: SOLR-173-open-files-bug.patch, SOLR-173-open-files-bug.patch, SOLR-173-open-files-bug.patch > > > From brian: > 1) Download trunk/nightly > 2) Change line 347 of example/solr/conf/solrconfig.xml to > 3) java -jar start.jar... > 3) Run post.sh a bunch of times on the same xml file... (in a shell script or whatever) > 4) After a few seconds/minutes jetty will crash with "too many open files" > - - - - - > all you've got to do is > apache-solr-nightly/example/exampledocs ryan$ while [ 0 -lt 1 ]; do ./post.sh hd.xml; done > with the request handler pointing to /update. Use > # lsof | grep solr | wc -l > to watch the fdescs fly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
RE: tsr.ch goes live with Solr!
Congrats! Blazing fast too! :). Jeryl Cook -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bertrand Delacretaz Sent: Saturday, February 10, 2007 6:14 AM To: solr-dev@lucene.apache.org Subject: tsr.ch goes live with Solr! Hi Solr community, I've been talking about my "current project" for months, it's finally live at http://www.tsr.ch/tsr/index.html?siteSect=50 It's the new video player page of our "national" (French-speaking part of Switzerland) TV network, backed by a Solr index fed by a continuous stream of incoming videos, as soon as editors enter them in their existing CMS. It's all in French but I've added some info in English at http://codeconsult.ch/bertrand/archives/000760.html. I'm going to base my ApacheCon talk on this example, to show how well Solr copes with "mixed" queries, combining structured, database-like searches with full-text. Solr is mostly used to generate all the dynamic navigation features of that page (via Ajaxish calls), the search function is there but the "exploration" features are much more prominent. I like it very much: don't search, find. Hope you like it...it's all Ajax and video player plugins (they haven't converted their large collection of videos to Flash yet), so you might find some bugs. If so, I'd love to hear about them off-list. Big thanks to the Lucene and Solr folks for making this possible, my part (creating the index back-end and assisting the front-end developers) has been very easy to implement thanks to these great tools! -Bertrand
RE: Stop words and phrases
You have to use the pass a set of stop words(Strings) as "java.util.Set" in the constructor of the StandardAnalyzer(default)... Jeryl Cook -Original Message- From: Manuel Albela Miranda [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 5:00 AM To: solr-dev@lucene.apache.org Subject: Stop words and phrases Hello everybody, Does anybody know how to ignore stopwords when searching with a phrase? I've been searching for information about this but find nothing. The thing is, i want to use stopwords when searching: /field:this is a house /and not to use them when searching like: /field:"this is a house"/. Hope you can help me. Thank you! Regards. Manu
RE: Update Plugins (was Re: Handling disparate data sources in Solr)
Sorry for the "flame" , but I've used spring on 2 large projects and it worked out great.. you should check out some of the GUIs to help manage the XML configuration files, if that is reason your team thought it was a nightmare because of the configuration(we broke ours up to help).. Jeryl Cook -Original Message- From: Alan Burlison [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 16, 2007 10:52 AM To: solr-dev@lucene.apache.org Subject: Re: Update Plugins (was Re: Handling disparate data sources in Solr) Bertrand Delacretaz wrote: > With all this talk about plugins, registries etc., /me can't help > thinking that this would be a good time to introduce the Spring IoC > container to manage this stuff. > > More info at http://www.springframework.org/docs/reference/beans.html > for people who are not familiar with it. It's very easy to use for > simple cases like the ones we're talking about. Please, no. I work on a big webapp that uses spring - it's a complete nightmare to figure out what's going on. -- Alan Burlison --
results while using SolrClient..
When I perform a search from indexed items.. The count name only shows partial count name, however the results show the full name The count Name value, shows partial state " texa ", even though in the index is Texas for a document. And also if I put United States, it shows a count.getName() of "Unit", and one only "state".. it seems to break up if it a white space, or If it believes it is plural.. is it a way to tern this off? QueryResults results = client.query( query ); logger.debug( "got: "+results.getNumFound() + " :: time "+results.getQTime() ); for(FieldFacet facet: results.getFacets()){ logger.info( "facet name: [" + facet.getName() + "] value count: [" + facet.getValueCount()+ "]"); if ( facet.getValueCount() != 0){ for(Count count : facet.getValues() ){ logger.info( " count Name: [" + count.getName() + "] , count: [" + count.getCount() + "]"); } } } Jeryl
Could not initialize class org.apache.solr.core.SolrCore
Title: Could not initialize class org.apache.solr.core.SolrCore I am sure this is a dumb mistake, but i followed the set up of SOLR/tomcat 5.5.20, but i keep getting this error.. java.lang.NoClassDefFoundError: Could not initialize class org.apache.solr.core.SolrCore org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:80) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) when viewing the admin page,i am sure i followed the install settings correctly. any ideas? Jeryl Cook