You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lucenenet.apache.org by lars aslin <la...@gmail.com> on 2011/04/09 11:42:51 UTC

[Lucene.Net] Lucene.Net with many databases

Hi
I am developing a search function for an web application with Lucene.Net and
NHibernate.Search. The application is used by a lots of companies but is
runned as a single service, using different databases for different
companies. Therefore I would need an index directory for each database
rather than one directory for the entire application. Is there a way of
achieve this in Lucene.Net?

I have also considering storing the indexes for each company in there
respecitive databases but havent found any satisfying compontents for this.
I have read about Compass and JdbcDirectory but I need something for C# or
NHibernate. Does anyone know if there is a port of JdbcDirectory or
something simular for C#?

Kind Regards
Lars

Re: RE: [Lucene.Net] Lucene.Net with many databases

Posted by lars aslin <la...@gmail.com>.
Thanks for answering.  Will take a closer look at your solutions

Den 15 apr 2011 03.01, "Igor Chirokov" <ig...@hotmail.com> skrev:


Hi ,
Just look www.walnutilsoft.com .
I've done some solution for SQL Server and Oracle as integrated lucene
index, which can be use with corresponded database.

Thanks,
Igor

> Date: Wed, 13 Apr 2011 11:17:57 +0200
> From: larsaaslin@gmail.com
> To: lucene-net-user@lucene.apache.org
> Subject: Re: [Lucene.Net] Lucene.Net with many databases

>
> Hi
> Thanks for your answer. Actually, I worked out a simular solution. I use a
> folder for ea...

RE: [Lucene.Net] Lucene.Net with many databases

Posted by Igor Chirokov <ig...@hotmail.com>.
Hi ,
Just look www.walnutilsoft.com .
I've done some solution for SQL Server and Oracle as integrated lucene index, which can be use with corresponded database.
 
Thanks,
Igor
 
> Date: Wed, 13 Apr 2011 11:17:57 +0200
> From: larsaaslin@gmail.com
> To: lucene-net-user@lucene.apache.org
> Subject: Re: [Lucene.Net] Lucene.Net with many databases
> 
> Hi
> Thanks for your answer. Actually, I worked out a simular solution. I use a
> folder for each database and am simply setting up each session to use one of
> those folders for full texts searches depending on the database in use of
> that session. Really simple.
> 
> 
> On Wed, Apr 13, 2011 at 2:12 AM, Gustavo Sandrigo <gu...@gmail.com> wrote:
> 
> > I run lucene in a multitenant environment, my web solution supports
> > multiple
> > websites.
> > I wrote the indexer to be aware of my different properties and use a
> > predefined folder for each one of them, as a matter of fact the properties
> > get picked up from the DB by the indexer including the index folder.
> > Lucene then can access each folder or if you require a global type search
> > then you would use lucene's capability to search multiple indexes. I don't
> > think this is what you want tho.
> > I hope this helps.
> >
> > On Sat, Apr 9, 2011 at 2:42 AM, lars aslin <la...@gmail.com> wrote:
> >
> > > Hi
> > > I am developing a search function for an web application with Lucene.Net
> > > and
> > > NHibernate.Search. The application is used by a lots of companies but is
> > > runned as a single service, using different databases for different
> > > companies. Therefore I would need an index directory for each database
> > > rather than one directory for the entire application. Is there a way of
> > > achieve this in Lucene.Net?
> > >
> > > I have also considering storing the indexes for each company in there
> > > respecitive databases but havent found any satisfying compontents for
> > this.
> > > I have read about Compass and JdbcDirectory but I need something for C#
> > or
> > > NHibernate. Does anyone know if there is a port of JdbcDirectory or
> > > something simular for C#?
> > >
> > > Kind Regards
> > > Lars
> > >
> >
> 
> WebRep
> Overall rating
> 
> WebRep
> Overall rating
 		 	   		  

Re: [Lucene.Net] Lucene.Net with many databases

Posted by lars aslin <la...@gmail.com>.
Hi
Thanks for your answer. Actually, I worked out a simular solution. I use a
folder for each database and am simply setting up each session to use one of
those folders for full texts searches depending on the database in use of
that session. Really simple.


On Wed, Apr 13, 2011 at 2:12 AM, Gustavo Sandrigo <gu...@gmail.com> wrote:

> I run lucene in a multitenant environment, my web solution supports
> multiple
> websites.
> I wrote the indexer to be aware of my different properties and use a
> predefined folder for each one of them, as a matter of fact the properties
> get picked up from the DB by the indexer including the index folder.
> Lucene then can access each folder or if you require a global type search
> then you would use lucene's capability to search multiple indexes. I don't
> think this is what you want tho.
> I hope this helps.
>
> On Sat, Apr 9, 2011 at 2:42 AM, lars aslin <la...@gmail.com> wrote:
>
> > Hi
> > I am developing a search function for an web application with Lucene.Net
> > and
> > NHibernate.Search. The application is used by a lots of companies but is
> > runned as a single service, using different databases for different
> > companies. Therefore I would need an index directory for each database
> > rather than one directory for the entire application. Is there a way of
> > achieve this in Lucene.Net?
> >
> > I have also considering storing the indexes for each company in there
> > respecitive databases but havent found any satisfying compontents for
> this.
> > I have read about Compass and JdbcDirectory but I need something for C#
> or
> > NHibernate. Does anyone know if there is a port of JdbcDirectory or
> > something simular for C#?
> >
> > Kind Regards
> > Lars
> >
>

WebRep
Overall rating

WebRep
Overall rating

Re: [Lucene.Net] Lucene.Net with many databases

Posted by Gustavo Sandrigo <gu...@gmail.com>.
I run lucene in a multitenant environment, my web solution supports multiple
websites.
I wrote the indexer to be aware of my different properties and use a
predefined folder for each one of them, as a matter of fact the properties
get picked up from the DB by the indexer including the index folder.
Lucene then can access each folder or if you require a global type search
then you would use lucene's capability to search multiple indexes. I don't
think this is what you want tho.
I hope this helps.

On Sat, Apr 9, 2011 at 2:42 AM, lars aslin <la...@gmail.com> wrote:

> Hi
> I am developing a search function for an web application with Lucene.Net
> and
> NHibernate.Search. The application is used by a lots of companies but is
> runned as a single service, using different databases for different
> companies. Therefore I would need an index directory for each database
> rather than one directory for the entire application. Is there a way of
> achieve this in Lucene.Net?
>
> I have also considering storing the indexes for each company in there
> respecitive databases but havent found any satisfying compontents for this.
> I have read about Compass and JdbcDirectory but I need something for C# or
> NHibernate. Does anyone know if there is a port of JdbcDirectory or
> something simular for C#?
>
> Kind Regards
> Lars
>