unsubscribe

2007-05-29 Thread Rafeek Raja
unsubscribe

Race condition in RefCounted?

2007-05-29 Thread Kay Röpke
Hi people! As I was looking at the solr source code the other day, I noticed the following: public abstract class RefCounted { [...] public final RefCounted incref() { refcount.incrementAndGet (); return this; } public void decref() { if (refcount.decrementAndGet()==0) close(); } prot

Re: Race condition in RefCounted?

2007-05-29 Thread Yonik Seeley
Hi Kay, You are right for general usage of RefCounted... I should probably add a comment to that class. Solr as a whole doesn't have a problem though because other locking ensures that once the refcount reaches 0, no one will increment it again. SolrCore holds a reference itself, and only calls de

Re: Multiple copyFields as field boost hack?

2007-05-29 Thread Yonik Seeley
On 5/28/07, Ryan McKinley <[EMAIL PROTECTED]> wrote: I have an app where I want dismax style automatic field boosting (for the title), but also want to expose lucene query syntax (phrase, range, etc) The default search field for my schema is "fulltext". I am copying all the relevant fields but

Re: Race condition in RefCounted?

2007-05-29 Thread Kay Röpke
Hi Yonik! On May 29, 2007, at 4:02 PM, Yonik Seeley wrote: You are right for general usage of RefCounted... I should probably add a comment to that class. Solr as a whole doesn't have a problem though because other locking ensures that once the refcount reaches 0, no one will increment it again

RE: field display values

2007-05-29 Thread Will Johnson
>I can't think of any value add in having Solr keep track of the fact that >"ds" means "Download Speed" vs having an external data mapping keep track >of that information, since direct access to that info inside of Solr >wouldn't typically make the performance of requests any faster or >reduce the

Optimizing frequently updated index

2007-05-29 Thread Tom Hill
Hi - I have an index that is updated fairly frequently (every few seconds), and I'm replicating to several slave servers. Because of the frequent updates, I'm usually pushing an index that is not optimized. And, as it takes several minutes to optimize, I don't want to do it every time I replicat

Re: Problem with machine hostname and Solr/Tomcat

2007-05-29 Thread Brian Lucas
Thanks Chris, it was as easy as adding the hostname to /etc/hosts to fix. hossman_lucene wrote: > > : Anyone encounter a problem when changing their hostname? (via > : /etc/conf.d/hostname or just the hostname command) I'm getting this > error > : when going to the admin screen, I have a feel

SolrRequestHandler implementations

2007-05-29 Thread John Wang
Solr developers: There are different SolrRequestHandler implementations in Solr, e.g. DisMaxRequestHandler, StandardRequestHandler and they overlap in functionality. And we are thinking of writing our own SolrRequestHandler implementation, which means to also support standard functionality, we'd

Proper ways to handle errors in BaseTokenFilterFactory subclasses

2007-05-29 Thread Teruhiko Kurosaka
When the parameter to a token filter is out of range, or a mandatory paramter is not given, what is the proper way to fail in the init() and crate() methods? Should I throw an RuntimeException? Or should I simply call SolrCore.log.severe(message)? Is it OK for create() to return null when the unde

Re: SolrRequestHandler implementations

2007-05-29 Thread Ryan McKinley
Are there plans to rethink the plugin architecture, e.g. to break into phases or modules where other components/plugins can extend? Or what are some other suggestions you guys may have? Check org.apache.solr.util.SolrPluginUtils -- ideally most functionality shared across multiple RequestHand

Re: SolrRequestHandler implementations

2007-05-29 Thread Yonik Seeley
On 5/29/07, John Wang <[EMAIL PROTECTED]> wrote: Are there plans to rethink the plugin architecture, e.g. to break into phases or modules where other components/plugins can extend? Or what are some other suggestions you guys may have? Yes, I've considered the need for it. It would allow someone

Re: Proper ways to handle errors in BaseTokenFilterFactory subclasses

2007-05-29 Thread Ryan McKinley
Teruhiko Kurosaka wrote: When the parameter to a token filter is out of range, or a mandatory paramter is not given, what is the proper way to fail in the init() and crate() methods? Should I throw an RuntimeException? Or should I simply call SolrCore.log.severe(message)? Is it OK for create() t