Re: Problem: Indexing and searching repeating groups of fields

2010-01-22 Thread TJ Kolev
> > On Wed, Jan 13, 2010 at 4:30 PM, Digy wrote: > > > > > > > How about using languages as fieldnames? > > > > Doc1(Ra): > > > >Java:5 > > > > C:2 > > > > PHP:3 > > > > > > > > Doc2(Rb)

Re: Problem: Indexing and searching repeating groups of fields

2010-01-15 Thread Erick Erickson
PHP:3 > > > > > > Doc2(Rb) > > >Java:2 > > >C:5 > > > VB:1 > > > > > > Query:Java:5 AND C:2 > > > > > > DIGY > > > > > > -Original Message- > > > From: TJ Kolev [mailto

Re: Problem: Indexing and searching repeating groups of fields

2010-01-15 Thread TJ Kolev
>> >C:2 >> >PHP:3 >> > >> > Doc2(Rb) >> >Java:2 >> >C:5 >> >VB:1 >> > >> > Query:Java:5 AND C:2 >> > >> > DIGY >> > >> > -Original Message- &

Re: Problem: Indexing and searching repeating groups of fields

2010-01-15 Thread TJ Kolev
>C:2 > >PHP:3 > > > > Doc2(Rb) > >Java:2 > >C:5 > >VB:1 > > > > Query:Java:5 AND C:2 > > > > DIGY > > > > -Original Message- > > From: TJ Kolev [mailto:tjko...@gmail.com] > >

Re: Problem: Indexing and searching repeating groups of fields

2010-01-13 Thread Erick Erickson
10 11:00 PM > To: java-user@lucene.apache.org > Subject: Problem: Indexing and searching repeating groups of fields > > Greetings, > > Let's assume I have to index and search "resume" documents. Two fields are > defined: Language and Years. The fields are associ

RE: Problem: Indexing and searching repeating groups of fields

2010-01-13 Thread Digy
: java-user@lucene.apache.org Subject: Problem: Indexing and searching repeating groups of fields Greetings, Let's assume I have to index and search "resume" documents. Two fields are defined: Language and Years. The fields are associated together in a group called Experience. A resu

Re: Problem: Indexing and searching repeating groups of fields

2010-01-13 Thread Erick Erickson
One approach would be to do this with multi-valued fields. The idea here is to index all your E fields in the *same* Lucene field with an increment gap (see getPositionIncrementGap) > 1. For this example, assume getPositionIncrementGap returns 100. Then, for your documents you have something like

Problem: Indexing and searching repeating groups of fields

2010-01-13 Thread TJ Kolev
Greetings, Let's assume I have to index and search "resume" documents. Two fields are defined: Language and Years. The fields are associated together in a group called Experience. A resume document may have 0 or more Experience groups: Ra{ E1(Java,5); E2(C,2); E3(PHP,3);} Rb{ E1(Java,2); E2(C,5);