//We will use default search weight of 3 for string attributes.
//We will use default search weight of 3 for string attributes.
//this will make the string data searchable like in FullTextIndex Searcher using Free Text searcher.
//this will make the string data searchable like in FullTextIndex Searcher using Free Text searcher.
searchWeight=DEFAULT_SEARCHWEIGHT_FOR_STRINGS;
searchWeight=DEFAULT_SEARCHWEIGHT_FOR_STRINGS;
}elseif(!GraphBackedSearchIndexer.isValidSearchWeight(searchWeight)){//validate the value provided in the model.
}elseif(!GraphBackedSearchIndexer.isValidSearchWeight(searchWeight)){//validate the value provided in the model.
LOG.warn("Invalid search weight {} for attribute {}.{}. Will use default {}",searchWeight,entityDef.getName(),attributeName,DEFAULT_SEARCHWEIGHT_FOR_STRINGS);
LOG.warn("Invalid search weight {} for attribute {}.{}. Will use default {}",searchWeight,entityDef.getName(),propertyName,DEFAULT_SEARCHWEIGHT_FOR_STRINGS);
searchWeight=DEFAULT_SEARCHWEIGHT_FOR_STRINGS;
searchWeight=DEFAULT_SEARCHWEIGHT_FOR_STRINGS;
}
}
if(LOG.isDebugEnabled()){
if(LOG.isDebugEnabled()){
LOG.debug("Applying search weight {} for attribute {}.{}",searchWeight,entityDef.getName(),attributeName);
LOG.debug("Applying search weight {} for attribute {}.{}",searchWeight,entityDef.getName(),propertyName);