Skip to content

Commit

Permalink
this assert does not work because of the 9_0_0 solr version format.
Browse files Browse the repository at this point in the history
An 9_0 is expected but it does not work this way with this version.
  • Loading branch information
Orbiter committed Jul 21, 2024
1 parent accf4e4 commit 6878207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/net/yacy/search/index/Fulltext.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void connectLocalSolr() throws IOException {
final EmbeddedInstance localCollectionInstance = new EmbeddedInstance(new File(new File(Switchboard.getSwitchboard().appPath, "defaults"), "solr"), solrLocation, CollectionSchema.CORE_NAME, new String[]{CollectionSchema.CORE_NAME, WebgraphSchema.CORE_NAME});
final SolrConfig config = localCollectionInstance.getDefaultCore().getSolrConfig();
final String lvn = config.luceneMatchVersion.major + "_" + config.luceneMatchVersion.minor + "_" + config.luceneMatchVersion.bugfix;
assert SOLR_PATH.endsWith(lvn) : "luceneVersion = " + lvn + ", solrPath = " + SOLR_PATH + ", check defaults/solr/solrconfig.xml";
//assert SOLR_PATH.endsWith(lvn) : "luceneVersion = " + lvn + ", solrPath = " + SOLR_PATH + ", check defaults/solr/solrconfig.xml";

ConcurrentLog.info("Fulltext", "using lucene version " + lvn);
ConcurrentLog.info("Fulltext", "connected solr in " + solrLocation.toString() + ", lucene version " + lvn);
Expand Down

0 comments on commit 6878207

Please sign in to comment.