assertFalse( indexedTypeDescriptor.isIndexed() );
}
@Test
public void testGetTypeDescriptorForIndexedType() {
SearchConfigurationForTest cfg = getManualConfiguration();
SearchMapping mapping = new SearchMapping();
mapping
.entity( Foo.class ).indexed()
.property( "id", FIELD ).documentId()
;
cfg.setProgrammaticMapping( mapping );
SearchFactoryImplementor sf = new SearchFactoryBuilder().configuration( cfg ).buildSearchFactory();
IndexedTypeDescriptor indexedTypeDescriptor = sf.getIndexedTypeDescriptor( Foo.class);
assertNotNull( indexedTypeDescriptor );
assertTrue( indexedTypeDescriptor.isIndexed() );