Re: Solr admin page error on Solaris

2006-03-30 Thread Yonik Seeley
Hmmm, I just tried Tomcat 5.5.16 on Windows and the admin page comes up fine.
I don't have a Solaris box handy, but I can try it on Linux later.

Line 7 is blank... I wonder if it's some windows/unix EOL issue in jasper.

-Yonik

On 3/29/06, Michael Levy <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Just trying to get Solr running.  I can run it OK on my Windows machine
> as per the tutorial.  However, on my Solaris machine I'm having
> trouble.  My newly-installed Tomcat is running the various examples,
> seems to be running OK.
> Running:
> Tomcat version  5.5.16
> Java version 1.5.0_06-b05
> Running Solaris 5.9 on   sparc
>
> I put last night's solr.war file in webapps and it shows up OK in Tomcat
> manager and admin.  I then pointed my browser to
> http://mydomain:8080/solr/admin/ and the resulting page looks like
> below.  Any help appreciated, thanks!
>
> org.apache.jasper.JasperException: Exception in JSP: /admin/_info.jsp:7
> 4: 
> 5:
> 6: <%@ page import="java.util.Date"%>
> 7:
> 8: 
> 9: 
> 10: <[EMAIL PROTECTED] file="header.jsp" %>
>
> Stacktrace:
> 
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
> 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
> 
> 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)
>
> *root cause*
>
> javax.servlet.ServletException
> 
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
> 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
> org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:262)
> 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:332)
> 
> 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)
>
> *root cause*
>
> java.lang.NoClassDefFoundError
> org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:67)
> 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:332)
> 
> 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)


Re: Large test lucene DB to use with a SolR benchmark

2006-03-30 Thread Yonik Seeley
On 3/29/06, Ian Holsman <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I'd like to do a benchmark on how SolR performs on the new Sun T2000
> hardware (compared to a x86-64) machine (why? I'm trying to get the
> HW for free ) check out http://sunfirefan.com for more details). but
> in order to do this I need a lucene db to test against.
>
> does any one know of a publicly available production size database
> which I can use?  otherwise I will generate something off dmoz or
> randomly.

Nothing I know of...
A large realistic example for benchmarking would be nice though.


-Yonik


Re: faceted browsing

2006-03-30 Thread Erik Hatcher

Yonik,

Thanks for the recommendations.  It's reassuring to know I was on the  
right track in realizing that a custom SolrRequestHandler was needed  
to accomplish this.


Now I need to investigate the flexibility of the solrconfig.xml - can  
custom parameters be set there, such that a custom SolrRequestHandler  
could read them?   For example, I'd want to list the field names that  
are the "facets", such that counts for each of those are returned  
with each query.


Thanks,
Erik


On Mar 29, 2006, at 1:46 PM, Yonik Seeley wrote:


Solr has a lot of support to do faceted browsing, but one must
currently write a custom query handler to implement the faceting
logic.

The support includes:
  - custom query handlers:
  - the ability to return more data than just a list of documents
  - a filter cache with autowarming, for fast access to the filter for
each facet
  - more memory efficient and faster intersecting filter  
representations


The part I want in the future is simple faceted browsing without
having to write any plugins or Java code..  so we need to come up with
a syntax to represent the desired faceting operations, and then
implement that syntax in the standard request handler.

To implement a custom query handler, you need to implement  
SolrRequestHandler
http://incubator.apache.org/solr/docs/api/org/apache/solr/request/ 
SolrRequestHandler.html

and register it in solrconfig.xml

-Yonik

On 3/29/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:

I saw Yonik mentioned faceted browsing as something coming in the
future of Solr, but I had thought it was one of the initial features
from seeing this announcement ages ago:



If facets are part of the current Solr codebase, how are they
configured and returned in the response?

If they aren't currently possible with Solr, what would it take to
implement it?

I'm still, obviously, just scratching the surface of Solr as I
evaluate it for replacing my custom XML-RPC based search server which
does rudimentary facets using Filters and BitSet operations.

By faceted browsing, a Query is used to search, Hits are returned,
but also based on a subset of the fields (indexed, untokenized
fields) the number of documents in each of these "facet" fields is
returned as well to show counts by each facet.

Thanks,
Erik





Re: faceted browsing

2006-03-30 Thread Yonik Seeley
On 3/30/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
> Now I need to investigate the flexibility of the solrconfig.xml - can
> custom parameters be set there, such that a custom SolrRequestHandler
> could read them?   For example, I'd want to list the field names that
> are the "facets", such that counts for each of those are returned
> with each query.

Yes, here is a fragment from the example solrconfig.xml

  

The XML format is the same as what is used in the response for general data.
In addition to the data types above, there is also  which is the
same as 
except that the elements are named.

-Yonik