Where is upgrading documentation?
I apologize in advance for the simple questionwe're running on Solr 1.3, looking to upgrade to 1.4. I haven't been able to find instructions or guidelines for upgrading. Can anyone point me in the right direction? Thanks! Adam
Re: Where is upgrading documentation?
CHANGES.txt contains information, but no instructions. -Adam - Original Message From: Chris Hostetter hossman_luc...@fucit.org To: solr-user@lucene.apache.org Sent: Tue, November 17, 2009 1:43:14 PM Subject: Re: Where is upgrading documentation? : I apologize in advance for the simple questionwe're running on Solr : 1.3, looking to upgrade to 1.4. I haven't been able to find : instructions or guidelines for upgrading. Can anyone point me in the : right direction? Official info for people upgrading can be found in the CHANGES.txt file included in the release. notably the Upgrading from Solr 1.3 section. Addendums may be found on the wiki... http://wiki.apache.org/solr/Solr1.4 -Hoss
Re: How to access the information from SolrJ
We have the same issue as Paul. We currently parse the XML manually to pull out the numFound from the response. Cheers! Adam - Original Message From: Paul Tomblin ptomb...@xcski.com To: solr-user@lucene.apache.org Sent: Friday, October 2, 2009 2:39:01 PM Subject: Re: How to access the information from SolrJ On Fri, Oct 2, 2009 at 3:13 PM, Shalin Shekhar Mangar shalinman...@gmail.com wrote: On Fri, Oct 2, 2009 at 8:11 PM, Paul Tomblin ptomb...@xcski.com wrote: Nope, that just gets you the number of results returned, not how many there could be. Like I said, if you look at the XML returned, you'll see something like result name='response' numFound='1251' start='0' but only 10 doc returned. getNumFound returns 10 in that case, not 1251. Nope. Check again. getNumFound will definitely give you 1251. SolrDocumentList#size() will give you 10. I don't have to check again. I put this log into my query code: QueryResponse resp = solrChunkServer.query(query); SolrDocumentList docs = resp.getResults(); LOG.debug(got + docs.getNumFound() + documents (or + docs.size() + if you prefer)); and I got exactly the same number in both places every single time. I can verify from the URL line that the following query: http://test.xcski.com:8080/solrChunk/nutch/select/?q=testfq=category:pharmafq=concept:Discoveryrows=5 has a result name='response' numFound='95' start='0' but when I do the same in SolrJ, docs.getNumFound() returns 5. 144652 [http-8080-14] DEBUG com.lucidityworks.solr.Solr - got 5 documents (or 5 if you prefer) -- http://www.linkedin.com/in/paultomblin
Problem querying for a value with a space
Touch gently with the Solr newbieI've searched trying to find an answer to this problem with no success. I'm sure it's something small and easy. I'm using Solr 1.3 with Solrj client fieldType name=string class=solr.StrField sortMissingLast=true omitNorms=true/ ... dynamicField name=*_s type=string indexed=true stored=true/ I am indexing the specific_LIST_s with the value For Sale. The document indexes just fine. A query returns the document with the proper value: str name=specific_LIST_sFor Sale/str However, when I try to query on that field +specific_LIST_s:For Sale +specific_LIST_s:For+Sale +specific_LIST_s:For%20Sale I get no results with any one of those three queries. If I index the value ForSale (no space), then execute the query +specific_LIST_s:ForSale ...returns the expected document. What am I missing? Thanks in advance, Adam :-)
Re: Problem querying for a value with a space
I think I understand what happened. The query +specific_LIST_s:For Sale is processed and broken into For and Sale. The specific_LIST_s field is a string, so it is not tokenized, but remains indexed as For Sale, which matches neither For nor Sale. Hence, no results. This query solves the problem: +specific_LIST_s:For Sale Cheers, Adam :-) - Original Message From: Dan A. Dickey dan.dic...@savvis.net To: solr-user@lucene.apache.org Cc: Adam Allgaier allgai...@yahoo.com Sent: Wednesday, September 2, 2009 6:20:13 PM Subject: Re: Problem querying for a value with a space On Wednesday 02 September 2009 15:15:42 Adam Allgaier wrote: Touch gently with the Solr newbieI've searched trying to find an answer to this problem with no success. I'm sure it's something small and easy. I'm using Solr 1.3 with Solrj client fieldType name=string class=solr.StrField sortMissingLast=true omitNorms=true/ ... dynamicField name=*_s type=string indexed=true stored=true/ I am indexing the specific_LIST_s with the value For Sale. The document indexes just fine. A query returns the document with the proper value: str name=specific_LIST_sFor Sale/str However, when I try to query on that field +specific_LIST_s:For Sale +specific_LIST_s:For+Sale +specific_LIST_s:For%20Sale I get no results with any one of those three queries. Your problem looks *very* much like what I just went through. Not sure, but... You are searching specific_LIST_s for For. The Sale part is being searched for in your defaultSearchField. Putting 's around the For Sale won't help either. You need to query something like: specific_LIST_s:For OR specific_LIST_s:Sale At least, that's what I ended up doing. In my case, I could have changed the defaultSearchField to what I wanted to search on in this situation - but I chose to explicitly set the query string. YMMV. -Dan If I index the value ForSale (no space), then execute the query +specific_LIST_s:ForSale ...returns the expected document. What am I missing? Thanks in advance, Adam :-) -- Dan A. Dickey | Senior Software Engineer Savvis 10900 Hampshire Ave. S., Bloomington, MN 55438 Office: 952.852.4803 | Fax: 952.852.4951 E-mail: dan.dic...@savvis.net