Hi,
I tried indexing for PostingsHighligher with
TextField."TYPE_NOT_STOREDTYPE_STORED" and used postings highlighter..iam
getting null pointer Exception.
But if i use TextField.TYPE_STORED it is working properly..
can,t i use postingshighlighter without storing ?.Please kindly Help.
Below is the sample code i used for indexing
offsetsType= new FieldType(TextField.TYPE_NOT_STOREDTYPE_STORED);
offsetsType.setIndexOptions(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS);
field = new Field("contents","", offsetsType);
--
Thanks and Regards
Vignesh Srinivasan
9739135640