Hello sol,
each version o Hibernate Search is tightly coupled (compiled with) a specific version of Lucene, you can replace the Lucene version as long as the public api didn't change.
The error you're seeing is most likely due to the fact that in earlier versions of Lucene the
Field.Index.NOT_ANALYZED and
Field.Index.ANALYZED had a very unfortunate typo. This was fixed in recent versions, but breaks compatibility, so this is now for me an indication that you're not loading the correct version of Lucene;
It appears that other projects have the bad habit to "copy-paste" Lucene inside another jar keeping the same package names, so I'd recommend you to use some classpath scanning tool like
JBoss Tattletale. It's a command line tool wich produces some reports and is able to tell if you're having duplicate classes in different JARs.
An alternative is you check all your other jars (looking inside too) to not contain another copy of Lucene.
Quote:
lucene-core-2.4-dev.jar
Which version is that? shouldn't it be healthier to use lucene-core-2.4.1.jar ?