Solr performance issues

2008-06-19 Thread Sébastien Rainville
Hi, I've been using solr for a little without worrying too much about how it works but now it's becoming a bottleneck in my application. I have a couple issues with it: 1. My index always gets slower and slower when commiting/optimizing for some obscure reason. It goes from 1 second with a new

Re: Solr performance issues

2008-06-20 Thread Sébastien Rainville
On Fri, Jun 20, 2008 at 8:32 AM, Erik Hatcher [EMAIL PROTECTED] wrote: On Jun 19, 2008, at 6:28 PM, Yonik Seeley wrote: 2. I use acts_as_solr and by default they only make post requests, even for /select. With that setup the response time for most queries, simple or complex ones, were

Using custom Similarity class

2008-07-16 Thread Sébastien Rainville
Hi, I'm trying to make solr use my custom similarity class: import org.apache.lucene.search.DefaultSimilarity; public class CustomSimilarity extends DefaultSimilarity { } but I keep getting this error: com.example.CustomSimilarity cannot be cast to org.apache.lucene.search.Similarity at

Re: Using custom Similarity class

2008-07-17 Thread Sébastien Rainville
, as IndexSchema.java:449 isn't the the similarity stuff currently). Does your CustomSimilarity have a no-arg constructor? Erik On Jul 16, 2008, at 9:19 PM, Sébastien Rainville wrote: Hi, I'm trying to make solr use my custom similarity class: import

Re: Using custom Similarity class

2008-07-17 Thread Sébastien Rainville
Thanks for the tip but I solved it but using the old way of loading custom libs into solr: unpack the war file, add the custom library to WEB-INF/lib and repack it. It definetly is a class loader problem, as the wiki specifies that the new way of loading custom jars is using a custom class loader

scoring individual values in a multivalued field

2008-08-28 Thread Sébastien Rainville
Hi, I have a multivalued field that I would want to score individually for each value. Is there an easy way to do that? Here's a concrete example of what I'm trying to achieve: Let's say that I have 3 documents with a field name_t and a multivalued field caracteristic_t_mv: doc field

scoring + sorting

2008-09-09 Thread Sébastien Rainville
Hi, a basic thing I don't get is how does sorting interacts with the default scoring? Sorting doesn't seem to do what I want. Both default scoring and sorting define the scoring of the documents so how can they work together? Does the sorting overrides things in the default scoring? Basically,