lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [02/46] lucenenet git commit: Fixed bug in Facet.Taxonomy.SearcherTaxonomyManager - wrong exception being thrown.
Date Tue, 04 Oct 2016 20:01:32 GMT
Fixed bug in Facet.Taxonomy.SearcherTaxonomyManager - wrong exception being thrown.


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/bcbfad58
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/bcbfad58
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/bcbfad58

Branch: refs/heads/master
Commit: bcbfad58f7c6b3c3c26f20d72e87e4a06c798e37
Parents: 1ca08df
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Sep 23 22:32:08 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Mon Oct 3 23:30:33 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/bcbfad58/src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs b/src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs
index d543aad..7abc055 100644
--- a/src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs
+++ b/src/Lucene.Net.Facet/Taxonomy/SearcherTaxonomyManager.cs
@@ -32,6 +32,7 @@ namespace Lucene.Net.Facet.Taxonomy
     using SearcherManager = Lucene.Net.Search.SearcherManager;
     using Directory = Lucene.Net.Store.Directory;
     using IOUtils = Lucene.Net.Util.IOUtils;
+    using System;
 
     /// <summary>
     /// Manages near-real-time reopen of both an IndexSearcher
@@ -163,7 +164,7 @@ namespace Lucene.Net.Facet.Taxonomy
                 else if (taxoWriter != null && taxoWriter.TaxonomyEpoch != taxoEpoch)
                 {
                     IOUtils.Close(newReader, tr);
-                    throw new ThreadStateException("DirectoryTaxonomyWriter.replaceTaxonomy
was called, which is not allowed when using SearcherTaxonomyManager");
+                    throw new InvalidOperationException("DirectoryTaxonomyWriter.replaceTaxonomy
was called, which is not allowed when using SearcherTaxonomyManager");
                 }
 
                 return new SearcherAndTaxonomy(SearcherManager.GetSearcher(searcherFactory,
newReader), tr);


Mime
View raw message