Hi Thomas, thomasg wrote:
As far as I'm aware when a new document is added to JR it is indexed by lucene using the default maxFieldLength value in lucene which is 10000. I want to increase this to allow all of a large document to be indexed and hence searchable. Am I correct to assume that this isnot currently possible? I propose to add a param to the Repository.xml which will be used like this:<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> <param name="path" value="${wsp.home}/index"/> <param name="maxFieldLength" value="Integer.MAX_VALUE"/> </SearchIndex> I guess I just need to follow in the source where other similar values for SearchIndex are set and do similar. Does this sound like a sensible way to proceed or can this default be changed already?
maxFieldLength is currently not configurable. but adding support for this parameter should be straight forward. you can just follow the path how maxMergeDocs is implemented. Starting point is in
org.apache.jackrabbit.core.query.lucene.SearchIndex.setMaxMergeDocs() regards marcel
