Couple of problems

2006-10-11 Thread mark
Hi, I have installed solr under a stand alone tomcat5.5 installation. I can see the admin screens etc. When I submit documents I get this error Oct 11, 2006 10:05:44 AM org.apache.solr.core.SolrException logSEVERE: java.lang.NullPointerException at org.apache.solr.update.DocumentBu

Re: Couple of problems

2006-10-11 Thread Panayiotis Papadopoulos
Check the tomcat logs... most probably there is a conflict with the field definitions in your schema.xml

Re: Couple of problems

2006-10-11 Thread mark
Hi, there are no errors while reading the schema: Oct 11, 2006 9:56:43 AM org.apache.solr.schema.IndexSchema readConfig INFO: Reading Solr Schema Oct 11, 2006 9:56:43 AM org.apache.solr.schema.IndexSchema readConfig INFO: Schema name=archive Oct 11, 2006 9:56:43 AM org.apache.solr.schema.IndexSc

Re: Couple of problems

2006-10-11 Thread Panayiotis Papadopoulos
How do you post the documents to solr ? Via php, jsp or smth like that ? Then if u use curl from php or jsp or asp you can see the error that solr returns, in php using curl i found out the error using this... $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETUR

Re: Couple of problems

2006-10-11 Thread mark
that just returns the null pointer exception. I have checked my schema and doc: Schema: stored="true"/> Template: doc = """ %s %s %s %s %s %s """ On 11 Oct 2006, at 12:19, Panayiotis Papadopoulos wrote: How d

Invalid XML in response

2006-10-11 Thread Przemysław Brzozowski
Hi I don't understand why SOLR returns and invalid XML file as a response in case when we insert a document with a field that is not defined in the Solr configuration. Is there any purpose for that? It would be nice if it returns a valid xml regards Przemek Brzozowski ERROR:unknown field

Re: Couple of problems

2006-10-11 Thread Erik Hatcher
Are you ensuring that the %s replacements are properly encoded for XML? Erik On Oct 11, 2006, at 7:54 AM, mark wrote: that just returns the null pointer exception. I have checked my schema and doc: Schema: stored="true"/> stored="true"/> Template: doc = ""

Re: Couple of problems

2006-10-11 Thread mark
I believe so - an earlier attempt did fail in that department but the result was an XML parsing error (as you might expect). On 11 Oct 2006, at 14:19, Erik Hatcher wrote: Are you ensuring that the %s replacements are properly encoded for XML? Erik On Oct 11, 2006, at 7:54 AM, ma

Solr use case

2006-10-11 Thread climbingrose
Hi all, Is it true that Solr is mainly used for applications that rarely change the underlying data? As I understand, if you submit new data or modify existing data on Solr server, you would have to "refresh" the cache somehow to display the updated data. If my application frequently gets new dat

Re: Couple of problems

2006-10-11 Thread Chris Hostetter
Wow ... this is crazy looking ... as far as i can tell the only way to get an NPE at thta line is if the DocumentBuilder is being given a null IndexSchema when i'ts constructed. I don't know how that would happen. can you zip up your solr/conf (so we have the schema and the config) and post it o

Re: Couple of problems

2006-10-11 Thread mark
can you zip up your solr/conf (so we have the schema and the config) and post it online somehwere? http://www.pagefall.com/cnf.zip But this is a right out of the box install - I have only messed with the schema to suit me. It was a nightly build though that's really weird ... i

Re: Solr use case

2006-10-11 Thread Kevin Lewandowski
No, after you add new documents you simply issue a command and the new docs are searchable. On Discogs.com we have just over 1 million docs in the index and do about 20,000 updates per day. Every 15 minutes we read a queue and add new documents, then commit. And we optimize once per day. I've ha

Re: Couple of problems

2006-10-11 Thread Kevin Lewandowski
I've had a problem similar to this and it was because of the schema.xml. It was valid XML but there were some incorrect field definitions and/or the default field listed was not a defined field. I'd suggest you start with the default schema and build on it piece by piece, each time testing for th

QTime field in response XML

2006-10-11 Thread Kevin Lewandowski
I've searched the docs but could not find an answer. Is this field microseconds or milliseconds? thanks, Kevin

Re: QTime field in response XML

2006-10-11 Thread WHIRLYCOTT
Milliseconds. I'd be fairly skeptical about anybody doing reliable millisecond timings on a jvm! phil. On Oct 11, 2006, at 3:05 PM, Kevin Lewandowski wrote: I've searched the docs but could not find an answer. Is this field microseconds or milliseconds? thanks, Kevin --

Re: QTime field in response XML

2006-10-11 Thread WHIRLYCOTT
On Oct 11, 2006, at 3:10 PM, WHIRLYCOTT wrote: Milliseconds. I'd be fairly skeptical about anybody doing reliable millisecond timings on a jvm! ^ Sorry, correcting myself. That should have been 'micro'. Timings are i

Re: Solr use case

2006-10-11 Thread Erik Hatcher
On Oct 11, 2006, at 10:24 AM, climbingrose wrote: Is it true that Solr is mainly used for applications that rarely change the underlying data? No, not at all. Solr is very dynamic, and in fact shines even more than plain Lucene when the data changes frequently. As I understand, if you

Sorting

2006-10-11 Thread Gmail Account
I need to sort a query two ways. Should I do the search one way: s.getDocListAndSet(query, restrictions, sort, req.getStart(), req.getLimit(), flags); then do the same search again with a different sort value or is there a method available to just sort the DocSet (like sortDocSet but it's prote

Re: Invalid XML in response

2006-10-11 Thread Chris Hostetter
: I don't understand why SOLR returns and invalid XML file as a response : in case when we insert a document with a field that is not defined : in the Solr configuration. Is there any purpose for that? : : It would be nice if it returns a valid xml i think if you were adding only one doc, and

Re: Couple of problems

2006-10-11 Thread Chris Hostetter
: But this is a right out of the box install - I have only messed with : the schema to suit me. when i use your schema with the current trunk using Jetty, right at startup my logs contain a "SolrException: Schema Parsing Failed" which is wrapping... Caused by: java.lang.RuntimeException: 'id' is

Re: Sorting

2006-10-11 Thread Chris Hostetter
: I need to sort a query two ways. Should I do the search one way: : s.getDocListAndSet(query, restrictions, sort, req.getStart(), : req.getLimit(), flags); : then do the same search again with a different sort value or is there a : method available to just sort the DocSet (like sortDocSet but it'

Re: Sorting

2006-10-11 Thread Mike Austin
Let me back up.. for a second. I want to create price ranges. I was thinking that I would do a search with a sort on price and create ranges by getting the document price every (docCount / #ofpricerangesIwant). Basically create: < 10, 10 - 60, 60 - 100 etc.. If the initial search wasn't sorted by

Re: Couple of problems

2006-10-11 Thread mark
This didn't show up at all in your Tomcat logs on startup? or the first time you tried to do a search or an update? (it's in the SolrServlet.init method) Nope - not at all. Hmm - thanks for finding problem though - will try it in a bit -Hoss