RE: How to make a query that associates 2 index files

2008-05-06 Thread Michael Siu
fly and be unique per different content. Thanks. -m -Original Message- From: Erick Erickson [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 06, 2008 12:46 PM To: java-user@lucene.apache.org Subject: Re: How to make a query that associates 2 index files Sure, just include different fields in

Re: How to make a query that associates 2 index files

2008-05-06 Thread Erick Erickson
-Original Message- > From: Erick Erickson [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 06, 2008 9:36 AM > To: java-user@lucene.apache.org > Subject: Re: How to make a query that associates 2 index files > > You don't. You really have to roll your own solution here, the

RE: How to make a query that associates 2 index files

2008-05-06 Thread Michael Siu
Message- From: Erick Erickson [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 06, 2008 9:36 AM To: java-user@lucene.apache.org Subject: Re: How to make a query that associates 2 index files You don't. You really have to roll your own solution here, there's no "inter-index" a

Re: How to make a query that associates 2 index files

2008-05-06 Thread Chris Lu
No easy way unless you merge your 2 indexes into: Index: [who][accessed] [key] [content] David1/1/2007 Abc"blah blah 123 ..." Someone 1/2/2005 Abc"blah blah 123 ..." Guess12/1/2000Xyz

Re: How to make a query that associates 2 index files

2008-05-06 Thread Erick Erickson
You don't. You really have to roll your own solution here, there's no "inter-index" awareness that I know of in Lucene. Typically, people either do a half-half solution (that is, put the text search in Lucene and leave the DB parts in the DB) or de-normalize the data in a Lucene index so you don't

How to make a query that associates 2 index files

2008-05-06 Thread Michael Siu
Hi, I am a newbie to Lucene. I have a question for making a query that associate 2 index files: - One index has the content index for a list of documents and a key to the document. That means the Lucene document of this index contains 2 fields: the 'content' and the 'key'. - another index