Willis, Paul A. wrote:
INFO: [main] '/db' Insert document: Message_0
Unable to add message: Unable to add item do database: Invalid resource:
Message_0: This Collection 'db' cannot store Documents
<snip/>
It looks like the debug output is saying that I cannot store documents. I
am very confused about how to "prepare" the collection for use and how to
tell xindice where the collection is located?!?
Paul,
Collection can store documents only when collection has filer. By default, root "/db" collection does not have filer (and can not store documents), and all collections you create underneath have a filer and can store documents. You can either create your own collection instead of storing documents in the "/db", or you should change configuration of the "/db" and add filer in there:
<collection name="db" ...> <filer class="org.apache.xindice.core.filer.BTreeFiler"/> ... </collection>
Hope this helps.
Vadim