Hi Deepak, I think you mistaken my query. I am looking to access the PDF files from another server, not the database.
Thanks, Karan On 9 November 2017 at 14:49, Deepak Vohra <dvohr...@yahoo.com.invalid> wrote: > Provide the url to the data source on a different server. > dataConfig> > <dataSource type="JdbcDataSource" > driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" > url="jdbc:sqlserver://10.0.0.102;databaseName=Dictionary;" > user="sa" > password="xxxxxxxx" > batchSize="5" /> > > <document name="TestDocument"> > <entity name="TestEntity" query="SELECT * FROM tag"> > <field column="Id" name="id" /> > <field column="Term" name="term" /> > <field column="Name" name="name" /> > </entity> > </document> > </dataConfig> > -------------------------------------------- > On Thu, 11/9/17, Karan Saini <maximus...@gmail.com> wrote: > > Subject: Quick Query about > To: solr-user@lucene.apache.org > Received: Thursday, November 9, 2017, 1:13 AM > > Hi there, > > I am new to the Apache Solr and > currently exploring how to use this > technology to search in the PDF files. > > <https://lucene.apache.org/solr/guide/6_6/uploading- > structured-data-store-data-with-the-data-import-handler. > html#the-tikaentityprocessor> > https://lucene.apache.org/solr/guide/6_6/uploading- > structured-data-store-data-with-the-data-import-handler. > html#the-tikaentityprocessor > > <https://lucene.apache.org/solr/guide/6_6/uploading- > structured-data-store-data-with-the-data-import-handler. > html#the-tikaentityprocessor> > > <https://lucene.apache.org/solr/guide/6_6/uploading- > structured-data-store-data-with-the-data-import-handler. > html#the-tikaentityprocessor> > I am able to index the PDF files using > the "BinFileDataSource" for the PDF > files within the same server as shown > in the below example. > > Now i want to know if there is a way to > change the baseDir pointing to the > folder present under a different > server. > > Please suggest an example to access the > PDF files from another server. > > > <dataConfig> > *<dataSource > type="BinFileDataSource"/> <!--Local > filesystem-->* > <document> > <entity > name="K2FileEntity" processor="FileListEntityProcessor" > dataSource="null" > > recursive = "true" > > > *baseDir="C:/solr-6.6.1/server/solr/core_K2_Depot/Depot"* > fileName=".*pdf" > rootEntity="false"> > > > <field column="file" name="id"/> > > <field column="fileSize" name="size" />--> > > <field column="fileLastModified" > name="lastmodified" /> > > > <entity name="pdf" > processor="TikaEntityProcessor" > onError="skip" > > > url="${K2FileEntity.fileAbsolutePath}" format="text"> > > > <field column="title" name="title" > meta="true"/> > > <field column="dc:format" > name="format" meta="true"/> > > <field column="text" > name="text"/> > > > </entity> > </entity> > </document> > </dataConfig> > > > Kind regards, > Karan > >