Try this. First this I deleted "vertex_index" which had some data in solr.
Next created index "vertex_index". Compile and run below code.
import org.apache.atlas.repository.graphdb.janus.AtlasJanusGraphDatabase;
import org.apache.commons.configuration.Configuration;
import org.janusgraph.core.JanusGraph;
import org.janusgraph.core.JanusGraphFactory;
import org.janusgraph.core.schema.JanusGraphIndex;
import org.janusgraph.core.schema.JanusGraphManagement;
import org.janusgraph.core.schema.SchemaAction;
public class Reindex {
public static void main(String[] args) throws Exception {
Configuration configuration =
AtlasJanusGraphDatabase.getConfiguration();
JanusGraph graphInstance= JanusGraphFactory.open(configuration);
JanusGraphManagement janusGraphManagement =
graphInstance.openManagement();
JanusGraphIndex vertex_index =
janusGraphManagement.getGraphIndex("vertex_index");
janusGraphManagement.updateIndex(vertex_index,
SchemaAction.REINDEX).get();
janusGraphManagement.commit();
}
}
Then check in solr.
curl "http://localhost:8983/solr/vertex_index/select?q=*.*"
On Fri, Feb 1, 2019 at 7:38 PM Viking K <[email protected]> wrote:
> Hi,
> Is it possible to rebuild the atlas indexes?
>
> I dropped the indexes in solr (removed the collections)
> But only a few of the previous once have returned.
>
> I dropped my indexes since I think the edge indexes did not return the
> full data set expected.
>
> Best regards
> Viking
>
>
--
Regards
Vasanth kumar RJ