Re: Retrieving attributes of terms in lucene

2013-09-13 Thread Michael McCandless
The TypeAttribute is not saved in the index "automatically"; if you want that, you need to move it over to the payload, which it looks like you are doing, so then just use DocsAndPositionsEnum.getPayload() to get it. CharTermAttribute is the term text, ie it's the terms exposed from TermsEnum. In

Retrieving attributes of terms in lucene

2013-09-11 Thread nischal reddy
Hi, I have written a custom Tokenizer which will split my input text into tokens, i have overridden the incrementToken method and setting chartermAttribute, offsetAttribute, typeAttribute (Please find the method below..) @Override final public boolean incrementToken() throws IOException {