gt; > Now, in your search code that document comes up as a hit and you have
>> > Field[] adds = doc.getFields("field1");
>> >
>> >
>> > adds.size() should == 3
>> >
>> > whenever adds.size() > 1, you can know it has multiple entries
it has only one value and I cannot know if that field is meant
> to
> >> >> have
> >> >> multiple values.
> >> >>
> >> >> Is there a way (at indexing (creating fields)) to set that cer
later
>> >> retrieve
>> >> all those values. But the problem I have is a bit structure related.
>> When
>> >> I'm reading those fields (that usually have more than one value) it
>> >> happens
>> >> that it has only one value and
ng those fields (that usually have more than one value) it
> >> happens
> >> that it has only one value and I cannot know if that field is meant to
> >> have
> >> multiple values.
> >>
> >> Is there a way (at indexing (creating fields)) to set th
gt;> is
>> meant for multiple values, so that later when I'm searching and I get
>> document/s hit, I can get from each field in it how to represent the hit.
>>
>> Thank you.
>>
>> --
>> View this message in context:
>> http://www.nabble
I'm searching and I get
> document/s hit, I can get from each field in it how to represent the hit.
>
> Thank you.
>
> --
> View this message in context:
> http://www.nabble.com/Multiple-values-in-field-tp20152411p201524
in context:
http://www.nabble.com/Multiple-values-in-field-tp20152411p20152411.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma