Java compilation error : cannot find symbol variable SearchOptions

I am following this training - Trainings - Java | Stardog - to develop a java application using Stardog native API.

While implementing a creatDb functionality, I am not able to set SearchOptions :

	try (final AdminConnection adminConnection = aConnectionService.getAdminConnection()) {
		if ( adminConnection.list().contains(dbName)) {
			sLogger.info("{} already exists, dropping before creating", dbName);
			adminConnection.drop(dbName);
		}
		adminConnection.newDatabase(dbName)
		.set(SearchOptions.SEARCHABLE, true)
        .set(ICVOptions.ICV_REASONING_ENABLED, true)
        .set(ICVOptions.ICV_ENABLED, true)
        .create();
        
		adminConnection.close();
	}

I am getting compilation error -

[ERROR] xxxxxx cannot find symbol
[ERROR] symbol: variable SearchOptions

Here is my pom.xml dependencies list, stardog-version is 7.7.3. I even tried with the same version that is mentioned in video i.e. 7.4.0 , but same error.

com.complexible.stardog
client-http
${stardog.version}
pom



com.complexible.stardog.core
stardog
${stardog.version}



com.complexible.stardog.search
stardog-search-api
${stardog.version}
</dependency

I have also included stardog maven repository in my pom.xml:

	<repository>
		<id>stardog-public</id>
		<url>http://maven.stardog.com</url>
	</repository>

Which dependency is required to get this resolved?
Thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.