private ConnectedMoreLikeThisQueryBuilder.INPUT_TYPE inputType;
private TermQuery findById;
public MoreLikeThisBuilder( DocumentBuilderIndexedEntity<T> documentBuilder, SearchFactoryImplementor searchFactory ) {
this.documentBuilder = documentBuilder;
Similarity configuredSimilarity = searchFactory.getIndexBindings().get( documentBuilder.getBeanClass() ).getSimilarity();
if ( configuredSimilarity instanceof TFIDFSimilarity ) {
this.similarity = (TFIDFSimilarity) configuredSimilarity;
}
else {
throw log.requireTFIDFSimilarity( documentBuilder.getBeanClass() );