Re: Problem with Custom analyzer

2013-09-02 Thread nischal reddy
Hi All, I was able to figure out what was going wrong, i had initialised the input in the constructor, which will be called only once, since the same instance will be reused, hence even for subsequent files it was using the old reader instance. i have refactored my code to use the input (reader i

Problem with Custom analyzer

2013-09-02 Thread nischal reddy
Hi, I have created a custom analyzer, with a custom tokenizer which takes Antlr tokens from a file and will convert it into lucene tokens by setting them to attribute source. It works fine if i add one document to index, i am able to search through a query and getting the hits. Problem comes whe