When indexing using Lucene Component I get an exception: java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
I look like the index(Exchange exchange) (line 72) method on LuceneIndexer iterates over all the header key/value pairs and adds them to the index. In this process it cast headers.get(field) to String. This doesn¹t work for Boolean values. BTW When I look at the Indexer code.. I¹m not sure it perticullar smart... Looks like it creates a document for each header attribute and the body. And opens and closes the index repeatly... This was my setup: Camel 2.5 Route: from("file:src/data?noop=true") .bean(³doSomethingWithTheContentAndReplaceBodyBean²) .to("lucene:MyIndex:insert?analyzer=#analyzer&indexDir=#index&srcDir=#source "); Thx. /Peter Thygesen