Hi, You need to do a little bit of research :) Please search the mailing list archives (links to them are on Lucene site). Searcj for JDBCDirectory. Use Google and search for +JDBCDirectory +Vito (this is the name of its author).
Otis --- Mag Gam <[EMAIL PROTECTED]> wrote: > well, it seems I want to store the index into the database itself. > ANy ideas > for that? Even if thats possible? > > > On 9/26/05, Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > > > > Lucene indices are created in the file system (FSDirectory) or in > > memory (RAMDirectory). If you want to store them elsewhere, you > need > > to implement your own Directory. > > > > Otis > > > > --- Mag Gam <[EMAIL PROTECTED]> wrote: > > > > > Otis: > > > > > > Thanks for the good and clean explanation! I will first try this > out, > > > and > > > let you know how that goes...what you are saying is making VERY > good > > > sense! > > > Once I index them, will this goto the filesystem, or somewhere > else? > > > I want > > > this index to be created in the table, so I can do quick SELECTs > thru > > > there. > > > > > > TIA! > > > > > > > > > On 9/26/05, Otis Gospodnetic <[EMAIL PROTECTED]> wrote: > > > > > > > > It's easy, pull the data from DB using something like JDBC, and > > > from > > > > retrieved rows create Lucene Documents. Of course, it gets more > > > > complicated than this, but start with something simple like > using > > > JDBC > > > > to run SELECTs, converting results to Lucene Documents, and > index > > > them > > > > with IndexWriter. > > > > > > > > There are also tools like Compass and DBSight that may help. > > > > > > > > Otis > > > > > > > > > > > > --- Mag Gam <[EMAIL PROTECTED]> wrote: > > > > > > > > > Otis: > > > > > > > > > > How do you do that? Got a quick and simple example? We have > been > > > > > looking for > > > > > an example for the last 3-4 months, but no luck.... > > > > > > > > > > > > > > > > > > > > > > > > > On 9/25/05, Otis Gospodnetic <[EMAIL PROTECTED]> > wrote: > > > > > > > > > > > > > Is it possible to do that in a database instead of a flat > > > text > > > > > file? > > > > > > > > > > > > Huh? > > > > > > You mean is it possible to index a database and not text > files > > > in > > > > > this > > > > > > fashion? If so: yes. > > > > > > > > > > > > Otis > > > > > > > > > > > > > > > > > > > On 9/24/05, Ahmet Aksoy <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > Thank you. That was what I meant! > > > > > > > > I'll try it as soon as possible. > > > > > > > > > > > > > > > > Otis Gospodnetic wrote: > > > > > > > > > > > > > > > > >If I understand you correctly, then yes, you can index > > > > > documents > > > > > > > with > > > > > > > > >different structures (different field names) in the > same > > > > > index. > > > > > > > > > > > > > > > > > >Otis > > > > > > > > > > > > > > > > > >--- Ahmet Aksoy <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >>Hi, > > > > > > > > >>I have a project seed in my mind. > > > > > > > > >>I will try to collect everything which have a > possibility > > > to > > > > > be > > > > > > > > >>remembered by me some day, and I will index them with > > > Lucene. > > > > > > > > >>Instead of using simple keywords, I will try to index > > > whole > > > > > > > documents > > > > > > > > >> > > > > > > > > >>wherever possible. So, I can start searching with a > > > simple > > > > > word, > > > > > > > and > > > > > > > > >>then continue to ask for more detailed answers. > > > > > > > > >>For example, frequently I forget the name of my > > > acquintances. > > > > > But > > > > > > > I > > > > > > > > >>don't forget their gender. Or, I can remember some > other > > > > > details > > > > > > > of > > > > > > > > >>them. So, I should index every possible clues. > > > > > > > > >>But, at the other end, I have some other documents > -such > > > as > > > > > some > > > > > > > > >>passwords, etc- which must be encrypted. Then, I must > use > > > > > some > > > > > > > > >>keywords > > > > > > > > >>for them. > > > > > > > > >>Is it possible to use a mixture of indexing methods > for > > > the > > > > > same > > > > > > > > >>clusture of documents? Some of them will be very > > > detailed, > > > > > and > > > > > > > some > > > > > > > > >>of > > > > > > > > >>them will contain only a simple keyword. > > > > > > > > >>Is it possible? > > > > > > > > >>Thanks. > > > > > > > > >>Ahmet Aksoy > > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > For additional commands, e-mail: > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]