SOLR-5629: SolrIndexSearcher.name should include core name

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1565138 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2014-02-06 10:00:15 +00:00
parent 462131403a
commit b436fd64cb
2 changed files with 4 additions and 1 deletions

View File

@ -366,6 +366,9 @@ Other Changes
* SOLR-5684: Shutdown SolrServer clients created in BasicDistributedZk2Test and
BasicDistributedZkTest. (Tomás Fernández Löbbe via shalin)
* SOLR-5629: SolrIndexSearcher.name should include core name.
(Shikhar Bhushan via shalin)
================== 4.6.1 ==================
Versions of Major Components

View File

@ -196,7 +196,7 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn
this.atomicReader = SlowCompositeReaderWrapper.wrap(this.reader);
this.core = core;
this.schema = schema;
this.name = "Searcher@" + Integer.toHexString(hashCode()) + (name!=null ? " "+name : "");
this.name = "Searcher@" + Integer.toHexString(hashCode()) + "[" + core.getName() + "]" + (name != null ? " " + name : "");
log.info("Opening " + this.name);
if (directoryFactory.searchersReserveCommitPoints()) {