Thanks for your reply.

I have managed to solve the problem. The reason is that we have to use this
"/" instead of this "\", even in Windows, and to include the data folder as
well.

This is the working one:
dataDir=D:/collection1/data

Regards,
Edwin


On 20 April 2016 at 21:39, Bram Van Dam <bram.van...@intix.eu> wrote:

> Have you considered simply mounting different disks under different
> paths? It looks like you're using Windows, so I'm not sure if that's
> possible, but it seems like a relatively basic task, so who knows.
>
> You could mount Disk 1 as /path/to/collection1 and Disk 2 as
> /path/to/collection2. That way you won't need to change your Solr
> configuration at all.
>
>  - Bram
>
> On 20/04/16 06:04, Zheng Lin Edwin Yeo wrote:
> > Thanks for your info.
> >
> > I tried to set, but Solr is not able to find the indexes, and I get the
> > following error:
> >
> >    - *collection1:*
> >
> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
> >    java.io.IOException: The filename, directory name, or volume label
> syntax
> >    is incorrect
> >
> >
> > Is this the correct way to set in core.properties file?
> > dataDir="D:\collection1"
> >
> > Also, do we need to set the dataDir in solrconfig.xml as well?
> >
> > Regards,
> > Edwin
> >
> >
> > On 19 April 2016 at 19:36, Alexandre Rafalovitch <arafa...@gmail.com>
> wrote:
> >
> >> Have you tried setting dataDir parameter in the core.properties file?
> >>
> https://cwiki.apache.org/confluence/display/solr/Defining+core.properties
> >>
> >> Regards,
> >>    Alex.
> >> ----
> >> Newsletter and resources for Solr beginners and intermediates:
> >> http://www.solr-start.com/
> >>
> >>
> >> On 19 April 2016 at 20:43, Zheng Lin Edwin Yeo <edwinye...@gmail.com>
> >> wrote:
> >>> Hi,
> >>>
> >>> I would like to find out is it possible to store the indexes file of
> >>> different collections in different hard disk?
> >>> Like for example, I want to store the indexes of collection1 in Hard
> Disk
> >>> 1, and the indexes of collection2 in Hard Disk 2.
> >>>
> >>> I am using Solr 5.4.0
> >>>
> >>> Regards,
> >>> Edwin
> >>
> >
>
>

Reply via email to