> > 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)
PHP:3
> > >
> > > Doc2(Rb)
> > >Java:2
> > >C:5
> > > VB:1
> > >
> > > Query:Java:5 AND C:2
> > >
> > > DIGY
> > >
> > > -Original Message-
> > > From: TJ Kolev [mailto
>> >C:2
>> >PHP:3
>> >
>> > Doc2(Rb)
>> >Java:2
>> >C:5
>> >VB:1
>> >
>> > Query:Java:5 AND C:2
>> >
>> > DIGY
>> >
>> > -Original Message-
&
>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]
> >
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
: 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
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
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);