Re: Reading field parameters from XML

2008-01-03 Thread Michael Mitiaguin
My initial concern was not about efficiency , but that using xml to make code more generic results in far from from elegant if/else checks for each of Field.Store , Field.Index , Field.TermVector. I'd prefer suggested way to make initial preparations to create the maps and then have an assignm

Reading field parameters from XML

2008-01-02 Thread Michael Mitiaguin
I want to keep index parameters in XML. e.g. May I avoid switch/case , if/else in my code and assign somehow Field.Store, Field.Index and etc... based on string value. - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

WITH_POSITIONS_OFFSETS versus WITH_OFFSETS

2007-05-23 Thread Michael Mitiaguin
What practical of using WITH_POSITIONS_OFFSETS ? Aren't WITH_OFFSETS sufficient and if iterate getStartOffset effectively gives the value from array element of getTermPositions ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Highlighting fast and highlighting all text

2007-05-23 Thread Michael Mitiaguin
I browsed this list and contributions and have a difficulty to determine whether there is anything which may be used straightforwardly to highlight all hits ( no fragmenting ) for large chunk of text. Probably my query should be sent as 3 separate ones : 1. The fastest possible fragment highligh