lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject IllegalStateException with Cocoon
Date Mon, 29 Apr 2002 11:50:58 GMT

while trying to index some XML documents within Cocoon I experienced the
following exception:
java.lang.IllegalStateException: field url cannot be an indexed field.
at org.apache.lucene.index.FieldInfos.add(Unknown Source)
at org.apache.lucene.index.FieldInfos.add(Unknown Source)
at org.apache.lucene.index.DocumentWriter.addDocument(Unknown Source)
at org.apache.lucene.index.IndexWriter.addDocument(Unknown Source)

Cocoon creates an indexed field for each XML element and each attribute.
Since Cocoon already creates an unindexed field, url, which contains, well,
the URL, you are unable to index a XML document with a <url> element.

Digging through the mail archives I found Doug suggesting the following

I tried it and it works for me. I dont know what the side effects are. I
didn't experience any. I kindly ask to apply the fix so its available in
the next RC.


Open Source Group               sunShine - Lighting up e:Business
Guido Casper, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-87 -

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message