lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcas...@s-und-n.de
Subject IllegalStateException with Cocoon
Date Mon, 29 Apr 2002 11:50:58 GMT
Hi,

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
fix:
http://marc.theaimsgroup.com/?l=lucene-user&m=100253044509125&w=2

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.

Thanks
Guido

--
Open Source Group               sunShine - Lighting up e:Business
=================================================================
Guido Casper, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-87  gcasper@s-und-n.de - http://www.s-und-n.de
=================================================================



--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message