No, you cannot register additional shorthands that way. Or rather, you can,
but we will remove that since its causing dependency issues due to
classpath ordering issues.

Best you do:

storage.index.search.backend = com.thinkaurelius.titan.diskstorage.solr.
SolrIndex

That always works.


On Fri, Jan 24, 2014 at 4:21 AM, Jeff Schmidt <notifications@github.com>wrote:

> In
> titan-core/src/main/java/com/thinkaurelius/titan/diskstorage/Backend.java:
>
> > @@ -477,6 +477,7 @@ public void clearStorage() throws StorageException {
> >          put("lucene", "com.thinkaurelius.titan.diskstorage.lucene.LuceneIndex");
> >          put("elasticsearch", "com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex");
> >          put("es", "com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex");
> > +        put("solr", "com.thinkaurelius.titan.diskstorage.solr.SolrIndex");
>
> Thanks Matthias, that is good to know. From what I can tell from the
> properties being loaded in the static initializer, I can define:
>
> index.solr=com.thinkaurelius.titan.diskstorage.solr.SolrIndex
>
> That adds the shorthand "solr" to the registered index providers. Then
> with that class and its dependencies on the classpath, I should be good to
> go? I can then define:
>
> storage.index.search.backend=solr
>
> And then when I do something like:
>
> graph.makeKey('symbol').dataType(String.class).indexed('search',
> Vertex.class).make()
>
> I'll then be working with Solr?
>
> Thanks,
>
> Jeff
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/thinkaurelius/titan/pull/372/files#r9146715>
> .
>



-- 
Matthias Broecheler
http://www.matthiasb.com