if(isEmbeddedSolr()){// AtlasJanusGraphIndexClient.performRequestHandlerAction() fails for embedded-solr; disable freetext until this issue is resolved
LOG.info("Dropping the use of types string optimization as there are too many types {} for select type {}.",typeString,context.getEntityType().getTypeName());
}else{
LOG.debug("Using the use of types string optimization as there are too many types {} for select type {}.",typeString,context.getEntityType().getTypeName());
@@ -106,14 +108,14 @@ public class SolrIndexHelper implements IndexChangeListener {
//this will make the string data searchable like in FullTextIndex Searcher using Free Text searcher.
searchWeight=DEFAULT_SEARCHWEIGHT_FOR_STRINGS;
}elseif(!GraphBackedSearchIndexer.isValidSearchWeight(searchWeight)){//validate the value provided in the model.
Stringmsg=String.format("Invalid search weight '%d' for attribute %s.%s",searchWeight,entityDef.getName(),attributeName);
LOG.error(msg);
LOG.warn("Invalid search weight {} for attribute {}.{}. Will use default {}",searchWeight,entityDef.getName(),attributeName,DEFAULT_SEARCHWEIGHT_FOR_STRINGS);
thrownewRuntimeException(msg);
searchWeight=DEFAULT_SEARCHWEIGHT_FOR_STRINGS;
}
LOG.info("Applying search weight {} for attribute {}.{}",searchWeight,entityDef.getName(),attributeName);
if(LOG.isDebugEnabled()){
LOG.debug("Applying search weight {} for attribute {}.{}",searchWeight,entityDef.getName(),attributeName);