On 5/10/06, Erik Hatcher <[EMAIL PROTECTED]> wrote:
Odd :)  But, I've adjusted my code to account for this.  Why would
you ever want different names than what is specified in the config
file?

You probably wouldn't... as far as I remember, it was just the easiest
way to get the name at the time.  Many parts of Solr were done in an
extreme rapid-apps type environment... I implemented it as fast as I
could, no peer review, often past midnight, etc ;-)

The cache name can be nice for the cache to have when implementing
logging or toString() for instance.  Since I already had the name, I
used it as the key.  Something like CacheConfig (it represents the
entry in solrconfig.xml) could have a getCacheName(), removing the
need for the cache to keep track of it.

 Also, it is confusing because there is a name() and getName()
methods required to implement a SolrCache.

Definitely... I hadn't even noticed that before :-)

-Yonik

Reply via email to