A quick update. I rolled back to solr 6.2, and the data import handler is 
recognized there.

So there has either been a change in the config required between 6.2 and 6.4, 
or there’s a bug in 6.4

Any thoughts?   

On 24/01/2017, 13:32, "Chris Rogers" <chris.rog...@bodleian.ox.ac.uk> wrote:

    Hi Alex,
    
    I’m editing the solrconfig.xml file at /solr/server/solr/tei_config (ie the 
one generated from the configset when the node was created).
    
    I’m running standalone, not cloud.
    
    I’m restarting sole after every change. Do I need to reload the core 
instead of restarting?
    
    I’ve also tried replacing the relative path to the .jar with an absolute 
path to the dist directory. Still didn’t work.
    
    Thanks,
    Chris
    
    On 24/01/2017, 13:20, "Alexandre Rafalovitch" <arafa...@gmail.com> wrote:
    
        Which solrconfig.xml are you editing and what kind of Solr install are
        you running (cloud?). And did you reload the core.
        
        I suspect you are not editing the file that is actually in use. For
        example, if you are running a cloud setup, the solrconfig.xml on the
        filesystem is disconnected from the config actually in use that is
        stored in ZooKeeper. You would need to reupload it for change to take
        effect.
        
        You also may need to reload the core for changes to take effect.
        
        Regards,
           Alex.
        ----
        http://www.solr-start.com/ - Resources for Solr users, new and 
experienced
        
        
        On 24 January 2017 at 07:43, Chris Rogers
        <chris.rog...@bodleian.ox.ac.uk> wrote:
        > Hi all,
        >
        > Having frustrating issues with getting SOLR 6.4.0 to recognize the 
existence of my DIH config. I’m using Oracle Java8 jdk on Ubuntu 14.04.
        >
        > The DIH .jar file appears to be loading correctly. There are no 
errors in the SOLR logs. It just says “Sorry, no dataimport-handler defined” in 
the SOLR admin UI.
        >
        > My config files are listed below. Can anyone spot any mistakes here?
        >
        > Many thanks,
        > Chris
        >
        > ##### solrconfig.xml ######
        >
        >   <lib dir="${solr.install.dir:../../../..}/dist/" 
regex=".*dataimporthandler-.*\.jar" />
        >
        > …
        >
        >   <requestHandler name="/dataimport" 
class="org.apache.solr.handler.dataimport.DataImportHandler">
        >     <lst name="defaults">
        >       <str name="config">DIH-data-config.xml</str>
        >     </lst>
        >   </requestHandler>
        >
        > ##### DIH-data-config.xml (in the same dir as solrconfig.xml) ######
        >
        > <dataConfig>
        >   <dataSource name='file-reader' type="FileDataSource"/>
        >   <document>
        >     <!-- this outer processor generates a list of files satisfying 
the conditions
        >          specified in the attributes -->
        >     <entity name="f" processor="FileListEntityProcessor"
        >             fileName=".*xml"
        >             newerThan="'NOW-5YEARS'"
        >             recursive="true"
        >             rootEntity="false"
        >             dataSource="null"
        >             
baseDir="/home/bodl-tei-svc/sites/bodl-tei-svc/var/data/tolkein_tei">
        >
        >       <!-- this processor extracts content using Xpath from each file 
found -->
        >
        >       <entity name="tei" processor="XPathEntityProcessor"
        >               forEach="/TEI" url="${f.fileAbsolutePath}" 
transformer="RegexTransformer" >
        >         <field column="manuscript_title" name="manuscript_title" 
xpath="/TEI/teiHeader/fileDesc/titleStmt/title"/>
        >         <field column="repository" name="repository" 
xpath="/TEI/teiHeader/fileDesc/publicationStmt/publisher"/>
        >         <field column="id" name="id" 
xpath="/TEI/teiHeader/fileDesc/sourceDesc/msDesc/msIdentifier/altIdentifier/idno"/>
        >       </entity>
        >
        >     </entity>
        >
        >   </document>
        > </dataConfig>
        >
        >
        > --
        > Chris Rogers
        > Digital Projects Manager
        > Bodleian Digital Library Systems and Services
        > chris.rog...@bodleian.ox.ac.uk
        
    
    

Reply via email to