lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <arafa...@gmail.com>
Subject Re: Modify data-conf.xml on the runtime
Date Wed, 11 Apr 2018 20:17:16 GMT
I believe you can use variable substitution like
${dih.request.paramname} and then pass 'paramname=value' in your HTTP
request.

Regards,
   Alex.

On 11 April 2018 at 11:25, rameshkjes <rameshkjes@gmail.com> wrote:
> Hi,
>
> I am doing configuration of solr with the xml and pdf dataset, it works
> perfect. But, I want to modify few things:
> Such as, we can see below, "baseDir" and "filePrefix" is being defined
> manually. I want this to be defined on the runtime. Consider that I have GUI
> and user is specifying the directories for datasets. So, I have separate
> java file that does this job. But, I don't know how to use data of that
> class to configure "baseDir" and "filePrefix". Could anyone help me that how
> can i access that data from java class and fill in the data-conf.xml.
>
> These are few fields of my data-conf.xml file.
>
> <entity name="file" processor="FileListEntityProcessor"
>                         baseDir="C:/Users/kuma_rm/github/ML/dataset/XmlMetaData/"
>                         fileName=".*xml" rootEntity="false" datasource="null"
>                         transformer="pathos.utils.transformer.FilePathTransformer">
>
>
>     <field column="filePath"
> filePrefix="C:/Users/kuma_rm/github/ML/dataset/PdfMetaData/"
>     fileSuffix=".pdf" oldFileSuffix=".xml" srcColName="file"/>
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Mime
View raw message