Hi Alessandro On Tue, Jul 16, 2013 at 8:25 PM, Alessandro Adamou <ada...@cs.unibo.it> wrote: > Hi Rupert, > > I too would like to go with the first option for a project I'm working on. > > I originally configured a SolrYard (called 'ledIndex') and a ReferencedSite > ('led') upon an index I had deployed in {stanbol-working-dir}/datafiles > > But since I'm on Drupal 7 I would like to use its Solr Search API module > https://drupal.org/project/search_api_solr > > So I've been thinking of using a SolrCore configuration, but I already have > a Solr Index created with the EntityHub indexing tool - 'led.solrindex.zip' > - and thought it would be enough in order to serve it via Solr. > > So I went through the following: > > > On 06/06/2013 05:27, Rupert Westenthaler wrote: >> >> If you want to use a customized SolrCore configuration for the >> Entityhub SolrYard the following steps are necessary. >> >> * create your SolrCore configuration within the {name} folder >> * create a Zip archive of the {name} older >> * rename the zip to {name}.solrindex.zip files >> * copy the {name}.solrindex.zip file to the stanbol/datafiles folder > > > I already have a led.solrindex.zip created with the indexing tool - should I > not use that one and skip the above steps? >
Yes. If you still want to use a customized SolrCore configuration you should provide a such under "indexing/config/{name}/" ... where {name} is "led" in your case. If this folder exists the Entityhub Indexing Tool will use this SolrCore configuration for indexing. (see the dbpedia indexing tool for an example) > >> After that you can configure a new SolrYard instance. Make sure to >> >> * enable "Allow Initialization" >> (org.apache.stanbol.entityhub.yard.solr.useDefaultConfig) >> * set the "Index Configuration" >> (org.apache.stanbol.entityhub.yard.solr.configName) to the name of >> your {name}.solrindex.zip >> >> The SolrYard will create the SolrCore on the default Managed >> SolrServer by using the SolrCore configuration provided by you. > > > Having already a SolrYard configured for use by a ReferencedSite and the > above steps done (org.apache.stanbol.entityhub.yard.solr.configName is set > to the filename of the 'led.solrindex.zip' created by the indexing tool), > > how can I verify of the SolrCore has been created and what is the endpoint > to access it? > > With the default configuration I believed I would find it at > http://{stanbol-host}/solr/ (as indicated by the > org.apache.stanbol.commons.solr.web.SolrServerPublishingComponent) but to no > avail. > The Solr RESTful API is published under "http://{host}/solr/default/" So sending http://localhost:8080/solr/default/led/select?q=*:* should give you a response > Basically my doubt is whether the entityhub indexing tool creates a resource > that has the same name as the one you need to configure a custom SolrCore, > but is not the same thing. > The SolrCore created by the Entityhub Indexing Tool uses the configured "name" ("led" in your case). If you manually configure a SolrYard you can choose different names. best Rupert > As you might notice I don't dig Solr so please bear with any dumb question > on my part. > > Thanks > > Alessandro > > > >> On Wed, Jun 5, 2013 at 7:18 PM, João Pedro Oliveira >> <joao.pe...@metatheke.com> wrote: >>> >>> Hello all. >>> >>> Is it possible to create a new Solr Core in a Stanbol instance and >>> configure >>> it with our own schema.xml file? >>> If so how can I do it? By the OSGI console? >>> I've read the information in the site about the Solr integration >>> (https://stanbol.apache.org/docs/trunk/utils/commons-solr) but I'm still >>> with a lot of doubts. >>> >>> Best Regards >>> João >>> >>> -- >>> >>> João Oliveira >>> Developer >>> >>> joao.pe...@metatheke.com >>> >>> >>> Metatheke Software >>> Rua Senhor dos Milagres, 19 r/c esq - Vera Cruz >>> 3800-261 Aveiro, Portugal >>> tel. +351 234 287 203 | fax. +351 234 287 204 >>> www.metatheke.com | i...@metatheke.com >>> >> >> > > > -- > Alessandro Adamou, Ph.D. > > Knowledge Media Institute > The Open University > Walton Hall, Milton Keynes MK7 6AA > United Kingdom > > > "I will give you everything, just don't demand anything." > (Ettore Petrolini, 1917) > > Not sent from my iSnobTechDevice > -- | Rupert Westenthaler rupert.westentha...@gmail.com | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen