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
Stylesheet
Hi! How can I apply stylesheet to the search result? I mean, where can I define, what stylesheet to use? Thanks, Kesava
Re: SOLR stylesheet
Andre, I believe I had posted the same message several months ago and was told the stylesheet functionality was for internal use in a previous release and is not functional now. On 7/17/06, Andre Basse [EMAIL PROTECTED] wrote: Hi SOLR users, I know this issue has been discussed before but I'm not sure if there was a final answer. I would like to apply a stylesheet as mentioned in the tutorial. http://localhost:8983/solr/select/?stylesheet= Any ideas where to place the stylesheet, any examples available? Thanks, Andre * The information contained in this e-mail message and any accompanying files is or may be confidential. If you are not the intended recipient, any use, dissemination, reliance, forwarding, printing or copying of this e-mail or any attached files is unauthorised. This e-mail is subject to copyright. No part of it should be reproduced, adapted or communicated without the written consent of the copyright owner. If you have received this e-mail in error, please advise the sender immediately by return e-mail, or telephone and delete all copies. Fairfax does not guarantee the accuracy or completeness of any information contained in this e-mail or attached files. Internet communications are not secure, therefore Fairfax does not accept legal responsibility for the contents of this message or attached files. *
Re: SOLR stylesheet
: I believe I had posted the same message several months ago and was told the : stylesheet functionality was for internal use in a previous release and is : not functional now. not quite ... the tabular.xsl file that is commited in SVN is for an old XML format that Solr no longer supports -- we never got arround to making a new one that could deal with the current XML format. If you want to use XSLTs with Solr as is, you have to either put them in the admin directory of the WAR when building Solr, or configure your servlet container in some way such that they can be accessed by clients using the url solr/admin/yourname.xsl -- all the Solr code does is write an ?xml-stylesheet? header using a relative URL out of the stylesheet param (take a look at the XMLWriter class to see what i mean) one of the things currently on the TaskList to make all types of plugin things easier -- including stylesheets. If anyone is interested in submitting a patch for this, I've been thinking that a better way for the stylesheet sstuff to work, would be for the requestHandler registration in the solrconfig to contain a mappping from short stylesheet names to fully qualified URIs, and then XMLWriter would lookup the value of hte stylesheet param in that Map to determine the header to output -- that way people could configure differnet request handlers with differnet supported stylesheets. Another possible approach, would be to add init params to queryResponseWriter so they could be configured there. if anyone is interested in purusing either of these options, step on over the the solr-dev list and we can spit ball them some more. -Hoss
stylesheet issue
I've got solr installed and running, with only one failure left to date. Whenver I try to select a stylesheet for my search, I get an error message such as this: Error loading stylesheet: A network error occured loading an XSLT stylesheet:http://localhost:8983/admin/tabular.xsl Something tells me something isn't mapped correctly here either in Jetty or in a Solar config. My hunch is the path should be http://localhost:8983/solr/admin/tabular.xsl; I must say the product is great and the synonym tool is unbelievable. Can't say enough. Any help with this stylesheet issue is greatly appreciated. Tim
Re: stylesheet issue
On 6/2/06, Tim Archambault [EMAIL PROTECTED] wrote: I've got solr installed and running, with only one failure left to date. Whenver I try to select a stylesheet for my search, I get an error message such as this: Hi Tim, There is no stylesheet :-) It's a hold-over from an old XML format that Solr used to support before it was open-sourced. That old XML format was for compatibility with another internal product. It turned out that it wasn't flexible enough to add extra info like multiple result sets, or faceted browsing info, so we came up with v2 of the XML (but no new stylesheet to go with it). The XML is fairly readable though, so it hasn't been much of a problem in practice. -Yonik
Re: stylesheet issue
That'll be fine. As you can probably tell, I'm not a programmer. I am just a dangerous end-user with expertise in marketing online operations trying to save a buck. I am going to try to learn XSL or if that doesn't work, I'll bastardize the results into a coldfusion recordset. I know I shouldn't ask you questions directly, but I have to ask you. How many queries per minute can Solr handle in a high use situation? Our website gets about 4 million page views a month and about 40,000 daily visitors, which is about an hour for CNET probably. I am envisioning Solr being the search engine for our jobs, autos, classifieds, and as a global search experience that includes them all. I really want to greatly limit the use of database connections on our site. Do you think Solr can be a global solution for search on our site. It's one thing to test, yet another in a production environment. Which java-based web server component do you recommend for a windows platform? Tomcat? Another? I know nothing about these tools. I am using Jetty for testing. Thank you for all your help. Tim On 6/2/06, Yonik Seeley [EMAIL PROTECTED] wrote: On 6/2/06, Tim Archambault [EMAIL PROTECTED] wrote: I've got solr installed and running, with only one failure left to date. Whenver I try to select a stylesheet for my search, I get an error message such as this: Hi Tim, There is no stylesheet :-) It's a hold-over from an old XML format that Solr used to support before it was open-sourced. That old XML format was for compatibility with another internal product. It turned out that it wasn't flexible enough to add extra info like multiple result sets, or faceted browsing info, so we came up with v2 of the XML (but no new stylesheet to go with it). The XML is fairly readable though, so it hasn't been much of a problem in practice. -Yonik
Re: stylesheet issue
On 6/2/06, Tim Archambault [EMAIL PROTECTED] wrote: That'll be fine. As you can probably tell, I'm not a programmer. I am just a dangerous end-user with expertise in marketing online operations trying to save a buck. I am going to try to learn XSL or if that doesn't work, I'll bastardize the results into a coldfusion recordset. I know I shouldn't ask you questions directly, but I have to ask you. How many queries per minute can Solr handle in a high use situation? It depends on how many documents are in the collection, the nature of the documents (unique terms, size of fields, etc), and heavily depends on the nature of the queries, and the CPU and memory of your hardware. I've seen up to 1000 queries/sec for very simple queries on a 1M doc index. Our website gets about 4 million page views a month and about 40,000 daily visitors, That shouldn't be a problem unless the collection is just too big. It's pretty easy to scale Solr to higher query traffic by putting more query servers behind a load balancer, *provided* that the latency of a single query is acceptable. If the collection is too big (to many documents, to big of documents), then you need to split up the collection and use federated search (Solr doesn't have it yet, but it will in the future). I am envisioning Solr being the search engine for our jobs, autos, classifieds, and as a global search experience that includes them all. I really want to greatly limit the use of database connections on our site. Do you think Solr can be a global solution for search on our site. By global do you mean Solr as the search solution for all those collections, or do you mean having all those different types of documents (jobs, autos, classifieds) in a single Solr index? Unless there is a good reason to put multiple document types in the same index, you will get better performance by putting them in their own index. Which java-based web server component do you recommend for a windows platform? Tomcat? Another? I know nothing about these tools. I am using Jetty for testing. Tomcat is the most widely used I think... and therefore easier to find docs and find help/support for it. I started a little Tomcat installation guide on the Wiki last night. -Yonik
Re: stylesheet issue
By global do you mean Solr as the search solution for all those collections, or do you mean having all those different types of documents (jobs, autos, classifieds) in a single Solr index? Yes I did. I envisioned separating them by custom fields named vertical and then within vertical category Unless there is a good reason to put multiple document types in the same index, you will get better performance by putting them in their own index. So my educated guess would be that I would create additional schema xml elements in my schema.xml separately for jobs, homes, cars, news, obits, etc ( in the tutorial, I note the schema name example) and my search query strings would have to specify which schema to use in the query, but I don't see a variable for schema. NumDocs: It looks like I am going to have an index of about 300,000 documents initially and should grow by about 150 per day.. On 6/2/06, Yonik Seeley [EMAIL PROTECTED] wrote: On 6/2/06, Tim Archambault [EMAIL PROTECTED] wrote: That'll be fine. As you can probably tell, I'm not a programmer. I am just a dangerous end-user with expertise in marketing online operations trying to save a buck. I am going to try to learn XSL or if that doesn't work, I'll bastardize the results into a coldfusion recordset. I know I shouldn't ask you questions directly, but I have to ask you. How many queries per minute can Solr handle in a high use situation? It depends on how many documents are in the collection, the nature of the documents (unique terms, size of fields, etc), and heavily depends on the nature of the queries, and the CPU and memory of your hardware. I've seen up to 1000 queries/sec for very simple queries on a 1M doc index. Our website gets about 4 million page views a month and about 40,000 daily visitors, That shouldn't be a problem unless the collection is just too big. It's pretty easy to scale Solr to higher query traffic by putting more query servers behind a load balancer, *provided* that the latency of a single query is acceptable. If the collection is too big (to many documents, to big of documents), then you need to split up the collection and use federated search (Solr doesn't have it yet, but it will in the future). I am envisioning Solr being the search engine for our jobs, autos, classifieds, and as a global search experience that includes them all. I really want to greatly limit the use of database connections on our site. Do you think Solr can be a global solution for search on our site. By global do you mean Solr as the search solution for all those collections, or do you mean having all those different types of documents (jobs, autos, classifieds) in a single Solr index? Unless there is a good reason to put multiple document types in the same index, you will get better performance by putting them in their own index. Which java-based web server component do you recommend for a windows platform? Tomcat? Another? I know nothing about these tools. I am using Jetty for testing. Tomcat is the most widely used I think... and therefore easier to find docs and find help/support for it. I started a little Tomcat installation guide on the Wiki last night. -Yonik
Re: stylesheet issue
: There is no stylesheet :-) : : It's a hold-over from an old XML format that Solr used to support : before it was open-sourced. That old XML format was for compatibility : with another internal product. It turned out that it wasn't flexible : enough to add extra info like multiple result sets, or faceted : browsing info, so we came up with v2 of the XML (but no new stylesheet : to go with it). : : The XML is fairly readable though, so it hasn't been much of a problem : in practice. Yeah ... the whole way the stylesheet param is handled has allwyas kind of bugged me ... in the back of my mind, i've been thinking that the right thing to do would be to change it so if it's specified, the string is used verbatim as the stylehseet URL instead of hte current practice of assuming it's in the admin directory -- that way people could either specify fully qualified URLs on another host, or quasi-relative paths rooted with / on another webapp of the current host/port, or it could even be a refrence to get-files.jsp so they could store the XSLTs in their ./solr directory. another way to go if we add init() params to QueryResponseWriter would be to make the XmlResponseWriter take in a NamedList of alias=URL mappings of all the stylesheets it wanted to support (which could still be served via get-files.jsp) -Hoss