mininum number of documents in multiple categories

2008-09-10 Thread Sébastien Rainville
Hi, Is there a way to force solr/lucene to return a given number of documents in multiple categories? Facets doesn't seem to be what I want because it only returns category names + items count. In my case I want to specify the categories that I want and a maximum number of items to retrieve in each

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, wha

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": Dog Cool Big Di

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 t

Re: Using custom Similarity class

2008-07-17 Thread Sébastien Rainville
to be not quite trunk at least, > 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, >>

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 or

Re: Reasonable number of updates before a commit

2008-06-20 Thread Sébastien Rainville
t every N docs or every N > minutes/hours. > > Otis > -- > Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch > > > - Original Message > > From: Sébastien Rainville <[EMAIL PROTECTED]> > > To: solr-user > > Sent: Friday, June 20, 2

Reasonable number of updates before a commit

2008-06-20 Thread Sébastien Rainville
Hi, Is there a rule of thumb for the maximum number of updates before issuing a commit? For example, I'm using a MapReduce job for indexing a table in HBase... but the problem is that I can't just let the reducers commit whenever they want or else commits tend to happen at the same time and there

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 >>> comple

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 in