May I avoid somehow switch/case if/else code if I read field
parameters from XML file.

switch (dfAttr.index )
{
case "TOKENIZED":
dfAttrs[i].fi = Field.Index.TOKENIZED ;
break;
case "UN_TOKENIZED":
dfAttrs[i].fi = Field.Index.UN_TOKENIZED;
break;
}

I have to repeat that for Store , TermVector unless shorter way is found.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouplucene-net-user @
categorieslucene
postedJan 3, '08 at 6:01a
activeJan 3, '08 at 6:01a
posts1
users1
websitelucene.apache.org

1 user in discussion

Michael Mitiaguin: 1 post

People

Translate

site design / logo © 2022 Grokbase