use of org.apache.atlas.repository.graphdb.AtlasGraphIndex in project incubator-atlas by apache.
the class GraphBackedSearchIndexerTest method verifyFullTextIndex.
@Test
public void verifyFullTextIndex() {
AtlasGraph graph = TestUtils.getGraph();
AtlasGraphManagement managementSystem = graph.getManagementSystem();
try {
AtlasGraphIndex fullTextIndex = managementSystem.getGraphIndex(Constants.FULLTEXT_INDEX);
assertTrue(fullTextIndex.isMixedIndex());
Arrays.asList(fullTextIndex.getFieldKeys()).contains(managementSystem.getPropertyKey(Constants.ENTITY_TEXT_PROPERTY_KEY));
} finally {
managementSystem.rollback();
}
}
Aggregations