At 10:24 AM 1/7/2005 -0500, Erik Hatcher wrote:
On Jan 7, 2005, at 10:03 AM, Mariella Di Giacomo wrote:
Probably this is trivial question.
How can you enforce the order of the fields when you index them ?
By the order in which you add them to a document.
So when you do the following:
doc.add(Field.Keyword("id", keywords[i]));
doc.add(Field.UnIndexed("country", unindexed[i]));
doc.add(Field.UnStored("contents", unstored[i]));
doc.add(Field.Text("city", text[i]));
The first stored will be id, the second country and so on.
Is that correct ?
Mariella
Thanks,
Mariella
At 09:32 AM 1/7/2005 +0000, mark harwood wrote:
>>It still reads the data for every field in the
document
No, not if your fields are positioned in the right
order. It stops reading fields after it has got what
is needed.
If your doc has fields in the order:
smallFrequentlyReadField, largeRarelyReadField
then the patch will not read "largeRarelyReadField"
off the disk when you ask for
"smallFrequentlyReadField".
If the fields are ordered the other way around then
there is (currently) no way of knowing the offset of
the smallFrequentlyReadField so all fields would have
to be read.
Hope this helps.
Mark
___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun!
http://uk.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]