Re: Range search in dependent collections

2009-02-23 Thread Ian Lea
> jobtitleN: somejob > startdateN: whenever > enddateN: whenever > > > > - Original Message > From: Ian Lea > To: java-user@lucene.apache.org > Sent: Monday, February 23, 2009 4:14:37 PM > Subject: Re: Range search in dependent collections >

Re: Range search in dependent collections

2009-02-23 Thread Mykola Peleshchyshyn
: java-user@lucene.apache.org Sent: Monday, February 23, 2009 4:14:37 PM Subject: Re: Range search in dependent collections Hi The simplest way is to flatten your data into lucene documents that hold all relevant info for user/job combinations. That will let you search easily across whichever

Re: Range search in dependent collections

2009-02-23 Thread Ian Lea
Hi The simplest way is to flatten your data into lucene documents that hold all relevant info for user/job combinations. That will let you search easily across whichever fields you want. Your documents could look like this: firstname: whatever lastname: whatever jobtitle: somejob startdate: wh

Range search in dependent collections

2009-02-23 Thread Mykola Peleshchyshyn
Hello, I'm new to Lucene and I have the following problem: I have a Users with first name, last name etc. and User Jobs (collection) with job title, start date, end date. I need to perform search on all user fields (fist name, last name etc) and job fields (job title and optionally start date a