Show a facet filter "All"
I have the facets below. As you can see the number of results for that facet are behind it. But I also want to show an option to the user that says "All (x results)". That would show the results if this filter was not used. Do bear in mind that I have more facet filters so simply using the numFound value wont suffice. Is there someway in the data-config or schema that I cant configure that? 2 2 1 -- View this message in context: http://lucene.472066.n3.nabble.com/Show-a-facet-filter-All-tp1421248p1421248.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: SolrJ and Multi Core Set up
Not sure about SolrJ, but generally in multi core Solr your core has a name and a data dir which don't have to be the same. In your case, you could have 2 cores called "live" and "rebuild" which reside on 2 data dirs called "core0" and "core1". You would always access the cores by their names, and when you swap them your "rebuild" would become your "live". Whenever you swap them a different one will point to the same data dir "core0", but you won't really care which one points where. Ephraim Ofir -Original Message- From: Shaun Campbell [mailto:campbell.sh...@gmail.com] Sent: Friday, September 03, 2010 2:41 PM To: solr-user@lucene.apache.org Subject: Re: SolrJ and Multi Core Set up Thanks Chantal I hadn't spotted that that's a big help. Thank you. Shaun On 3 September 2010 12:31, Chantal Ackermann < chantal.ackerm...@btelligent.de> wrote: > Hi Shaun, > > you create the SolrServer using multicore by just adding the core to the > URL. You don't need to add anything with SolrQuery. > > URL url = new URL(new URL(solrBaseUrl), coreName); > CommonsHttpSolrServer server = new CommonsHttpSolrServer(url); > > Concerning the "default" core thing - I wouldn't know about that. > > > Cheers, > Chantal > > On Fri, 2010-09-03 at 12:03 +0200, Shaun Campbell wrote: > > I'm writing a client using SolrJ and was wondering how to handle a multi > > core installation. We want to use the facility to rebuild the index on > one > > of the cores at a scheduled time and then use the SWAP facility to switch > > the "live" core to the newly rebuilt core. I think I can do the SWAP > with > > CoreAdminRequest.setAction() with a suitable parameter. > > > > First of all, does Solr have some concept of a default core? If I have > core0 > > as my "live" core and core1 which I rebuild, then after the swap I expect > > core0 to now contain my rebuilt index and core1 to contain the old live > core > > data. My application should then need to keep referring to core0 as > normal > > with no change. Does I have to refer to core0 programmatically? I've > > currently got working client code to index and to query my Solr data but > I > > was wondering whether or how I set the core when I move to multi core? > > There's examples showing it set as part of the URL so my guess it's done > by > > using something like setParam on SolrQuery. > > > > Has anyone got any advice or examples of using SolrJ in a multi core > > installation? > > > > Regards > > Shaun > > > >
RE: Download document from solr
You could index into your id (or another field) the download url of the document and then use that to enable download of the document. Ephraim Ofir -Original Message- From: Lance Norskog [mailto:goks...@gmail.com] Sent: Friday, September 03, 2010 1:07 AM To: solr-user@lucene.apache.org Subject: Re: Download document from solr Yes. Indexing a PDF&other types with '/extract' means that Solr finds words in the document and indexes those in a field 'content'. It does not save the binary contents of the file. You could make a request handler that fetches one document and generates a redirect to the link. On Thu, Sep 2, 2010 at 7:35 AM, Matteo Moci wrote: > Thank you for the suggestions, > I just completed the tutorial at http://lucene.apache.org/solr/tutorial.html > and i understood that in the GET parameters I can choose wt=standard (and > obtain an xml structure in the results), > wt=json or wt=php. > > All of them display the results inline, in the sense that they are embedded > and entirely included in the response. > > If I submit pdfs (i think it is also for docs and CSVs) files to solr, I > will get in the results something like this in json: > > [some part of response omitted] > response":{"numFound":1,"start":0,"maxScore":0.34002018,"docs":[ > { > "last_modified":"2010-08-05T14:07:24Z", > "id":"doc1", > "content_type":["application/pdf"], > "score":0.34002018}] > }} > > ( example taken from http://wiki.apache.org/solr/ExtractingRequestHandler ) > > that shows no content at all. > The only way I have to retrieve and download the pdf file is to use the > id=doc1 to access some repository (even a database table ) > that can provide me the content starting from the id. > > Does this look like a common practice? > > Thank you > > > > > > Il 02/09/10 08:47, Lance Norskog ha scritto: >> >> Solr can return the list of results in JSON or php format, so that you >> UI can allow a download. >> >> You can write a UI in the Velocity toolkit- it's pretty easy. >> >> On Wed, Sep 1, 2010 at 8:24 AM, Matteo Moci wrote: >>> >>> Hello to All, >>> I am a newbie with Solr, and I am trying to understand if I can use it >>> form >>> my purpose, >>> and I was wondering how Solr lists the result documents: do they appear >>> as >>> "downloadable files", >>> just like http://solr.machine.com/path/file.doc, or do I need develop >>> another layer to take care of downloading? >>> Even a link to the docs might work... >>> >>> Thank you, >>> Matteo >>> >>> >> >> > -- Lance Norskog goks...@gmail.com
Re: Show a facet filter "All"
Peter, take a close look at tagging and and excluding filters: http://wiki.apache.org/solr/SimpleFacetParameters#LocalParams_for_faceting Another way would be to index your services_raw as services_raw/Exclusive rental services_raw/Fotoreport services_raw/Live music In this case, you can use the facet-prefix param to get all the services_raw/*-values. I am not sure, but maybe even "*" is a valid prefix - than you do not need such extra-work. If all your documents include a services_raw-field, than this facet wouldn't make much sense, since it is applicable to all the documents, isn't it? Kind regards, - Mitch -- View this message in context: http://lucene.472066.n3.nabble.com/Show-a-facet-filter-All-tp1421248p1421539.html Sent from the Solr - User mailing list archive at Nabble.com.
RE: Show a facet filter "All"
The number of results if no filters from that facet were used is simply the total result count of the current search -- the search being returned by that query already is the results if no filters from that facet were used. The facet values are 'drill downs' into the current search. So simply using the numFound seems like it will suffice to me, despite having multiple facets. For every facet you have, the results if no filters from that facet were selected is numFound. If what you need is something different, maybe describe more specifically your requirements. Is what you want for each "All" the total number of documents in your solr index? I'm not really sure what you're trying to do. Jonathan From: PeterKerk [vettepa...@hotmail.com] Sent: Sunday, September 05, 2010 8:51 AM To: solr-user@lucene.apache.org Subject: Show a facet filter "All" I have the facets below. As you can see the number of results for that facet are behind it. But I also want to show an option to the user that says "All (x results)". That would show the results if this filter was not used. Do bear in mind that I have more facet filters so simply using the numFound value wont suffice. Is there someway in the data-config or schema that I cant configure that? 2 2 1 -- View this message in context: http://lucene.472066.n3.nabble.com/Show-a-facet-filter-All-tp1421248p1421248.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Newbie question: no search results
Hi Lance and Gora, Thanks for your support! I have changed Into In the schema.xml, then restarted Tomcat. Also I used quotation marks for my search string and it works fine now! Problem solved! Best regards, Bob -- View this message in context: http://lucene.472066.n3.nabble.com/Newbie-question-no-search-results-tp1416482p1422211.html Sent from the Solr - User mailing list archive at Nabble.com.
How to enable Unicode Support in Solr
I have an index that takes textual description and places it in the index. I am creating an XML file and passing it to Solr for indexing, but Solr is not saving Unicode characters as it is showing question mark for those characters. I want to know that how to enable Unicode Support for Solr index. Regards, Amier Haider
Re: using Solr with very large search terms
Increase the Http Header size of Tomacat server.xml and increase the maxBooleanClauses of solrconfig.xml to support the very large queries - Grijesh -- View this message in context: http://lucene.472066.n3.nabble.com/using-Solr-with-very-large-search-terms-tp1415558p1424649.html Sent from the Solr - User mailing list archive at Nabble.com.