On Jan 7, 2005, at 10:34 AM, Mariella Di Giacomo wrote:
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 ?


Yes.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to