Solr admin page error on Solaris

2006-03-29 Thread Michael Levy

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)




Solr war file errors in Apache Tomcat/5.5.16

2006-04-05 Thread Michael Levy
I am still having trouble getting Solr's war file to run under Solaris.  
I just took the most recent nightly build war, put it under /webapps/, 
point browser to /solr/admin/, and see the output below.  This is a new 
install of Solaris but all the Tomcat test pages work and Nutch seems to 
have installed ok.  Any ideas?  Thanks.


The Tomcat page looks like this:

*type* Exception report

*message*

*description* _The server encountered an internal error () that 
prevented it from fulfilling this request._


*exception*

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)

*note* _The full stack trace of the root cause is available in the 
Apache Tomcat/5.5.16 logs._




One big XML file vs. many HTTP requests

2006-05-12 Thread Michael Levy

Greetings,

I'm evaluating using Solr under Tomcat to replace a number of text 
searching projects that currently use UMASS's INQUERY, an older search 
engine.


One nice feature of INQUERY is that you can create one large SGML file, 
containing lots of records, each bracketed with  and  tags.  
Submitting that big SGML document for indexing goes very fast. 

I believe that Solr indexes one document at a time; each document 
requires a separate HTTP POST.


How efficient is making a separate HTTP request per-document, when there 
are millions of documents?  Do people ever use Solr's or Lucene's API 
directly for indexing large numbers of documents, and if so, what are 
the considerations pro and con?


Thanks to Yonik and Chris everyone for all your work; Solr looks really 
great.




Separate config and index per webapp

2006-05-15 Thread Michael Levy
I'd like to use Solr for a number of separate projects running on a 
single Tomcat instance; I thought I would have Solr running a separate 
webapp for each project.


I understand that the default location for the solrconfig.xml and 
schema.xml files and for the index are under Tomcat's 
current-working-directory/solr/conf


I am hoping I can change the default location for each webapp.  Thanks!


Re: Separate config and index per webapp

2006-05-17 Thread Michael Levy
I copied solrconfig.xml, schema.xml, synonyms.txt, protwords.txt and 
stopwords.txt into the WEB-INF/classes directory and the webapp is 
reading those files.


I was thinking that if I uncommented the indexDir element in 
solrconfig.xml, it would then use that directory in which to place the index

The commented-out default value is:
 index

I tried changing the value to:
 indexXXX

However this is being ignored; the index directory is still being 
created under Tomcat's current-working-directory/solr/conf/index   (In 
my case I'm testing under Windows and it's C:\Tomcat 5.5\solr\data\index)


Any ideas?  Thanks.

Mike Baranczak wrote:

On May 15, 2006, at 3:26 PM, Yonik Seeley wrote:


On 5/15/06, Michael Levy <[EMAIL PROTECTED]> wrote:

I'd like to use Solr for a number of separate projects running on a
single Tomcat instance; I thought I would have Solr running a separate
webapp for each project.

I understand that the default location for the solrconfig.xml and
schema.xml files and for the index are under Tomcat's
current-working-directory/solr/conf

I am hoping I can change the default location for each webapp.  Thanks!


It's not yet possible, but see this thread:
http://www.mail-archive.com/solr-dev@lucene.apache.org/msg00298.html

It looks like JNDI offers the easiest portable way.
The main SolrServlet would then need to be modified to do a JNDI
lookup and base config off of that.



The way I did it is I unpacked the WAR and put my config files into 
WEB-INF/classes/. Then I individually edit each app's solrconfig.xml 
and specify a unique path for the index directory. This may not be for 
everyone, but since I had to unpack the WAR anyway...


-MB




Re: Separate config and index per webapp

2006-05-17 Thread Michael Levy

Changing to  works fine with my version from 2006-05-15

Thanks for your help, this is just what I needed.

Yonik Seeley wrote:

Try using the latest nightly build, and changing indexDir to dataDir:

 
 

-Yonik

On 5/17/06, Michael Levy <[EMAIL PROTECTED]> wrote:

I copied solrconfig.xml, schema.xml, synonyms.txt, protwords.txt and
stopwords.txt into the WEB-INF/classes directory and the webapp is
reading those files.

I was thinking that if I uncommented the indexDir element in
solrconfig.xml, it would then use that directory in which to place 
the index

The commented-out default value is:
  index

I tried changing the value to:
  indexXXX

However this is being ignored; the index directory is still being
created under Tomcat's current-working-directory/solr/conf/index   (In
my case I'm testing under Windows and it's C:\Tomcat 
5.5\solr\data\index)


Any ideas?  Thanks.

Mike Baranczak wrote:
> On May 15, 2006, at 3:26 PM, Yonik Seeley wrote:
>
>> On 5/15/06, Michael Levy <[EMAIL PROTECTED]> wrote:
>>> I'd like to use Solr for a number of separate projects running on a
>>> single Tomcat instance; I thought I would have Solr running a 
separate

>>> webapp for each project.
>>>
>>> I understand that the default location for the solrconfig.xml and
>>> schema.xml files and for the index are under Tomcat's
>>> current-working-directory/solr/conf
>>>
>>> I am hoping I can change the default location for each webapp.  
Thanks!

>>
>> It's not yet possible, but see this thread:
>> http://www.mail-archive.com/solr-dev@lucene.apache.org/msg00298.html
>>
>> It looks like JNDI offers the easiest portable way.
>> The main SolrServlet would then need to be modified to do a JNDI
>> lookup and base config off of that.
>
>
> The way I did it is I unpacked the WAR and put my config files into
> WEB-INF/classes/. Then I individually edit each app's solrconfig.xml
> and specify a unique path for the index directory. This may not be for
> everyone, but since I had to unpack the WAR anyway...
>
> -MB




Re: One big XML file vs. many HTTP requests

2006-05-22 Thread Michael Levy

It seems you can do something like
FIELDNAME:a*
and
FIELDNAME:b*
...but you can't simply
FIELDNAME:*
or
*

The demo post.sh returns Error parsing Lucene
query
and the demo Solr Admin page shows
XML Parsing Error: syntax error
Location:
http://wiki.ushmm.org:8080/solr/select/?stylesheet=&q=*&version=2.1&start=0&rows=10&indent=on
Line Number 1, Column 1:org.apache.solr.core.SolrException: Error parsing
Lucene query
^

What is the best way to delete all records, for example if you want to clear
out the entire index and reindex everything?


On 5/21/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:



: But deleting multiple documents with just one POST is not possible,
: right? Is there a special reason for that or is it because nobody asked

delete by query will remoe multiple documents with a sigle command .. but
if you mean dleete by id .. you may be right about it not having the same
"loop" kludge that  has.

As Yonik has mentioned before .. if you use persistent connections in your
HTTP Client layer, there isn't really any advantage to sending multiple
commands in one request, vs sending multiple requests.

-Hoss




No segments file after optimizing using Luke

2007-04-11 Thread Michael Levy
After using Luke v0.7 to Optimize Index, with either "Using Standard 
Format" or "Using Compound Format", and restarting Solr using jetty, I 
get a java.io.FileNotFoundException indicating that it can't find the 
segments file.


There's no segments file in the index directory, but Luke optimization 
created files named segments_n (n being 3 for standard format and 6 for 
compound format) and segments.gen.


How can I resolve this?  Thanks in advance!