Hi all. I've been having quite a bit of trouble with indexes in Xindice 1.1b. I create one index each on 10 different collections using the following code. There are about 1000 items in eaach collection.
AddIndexer ai = new AddIndexer(); Hashtable h = new Hashtable(); h.put("collection", "xmldb:xindice-embed:///db/" + type); h.put("nameOf", type + "Index"); h.put("pattern", "Name"); h.put("verbose", "true"); h.put("type", "string"); try { success = ai.execute(h); } catch (Throwable e) { e.printStackTrace(); System.out.println(e.getMessage()); } System.out.println(success); This seems to work. I get the following reply for the creation of each index. true Index node element = <?xml version="1.0"?> <index class="org.apache.xindice.core.indexer.ValueIndexer" name="qmmVersionGeneralObjectIndex" pattern="Name" type="string" /> However, if I run a series of queries against the xml database some items which would be returned if I don't use indexes are not returned. I cannot seem to find any pattern to this problem. One possible reason might me that the values being indexed contain '_' underscore's i.e. . "mn_qa_author" Another is that the database needs time to complete the indexes before you can run queries against it. Any help would be greatfully appreciated. Regards Darragh. ******************************************************** This email message is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure, printing, copying or distribution is prohibited. If you are not, or believe you are not, the intended recipient, please contact our systems administrator immediately at [EMAIL PROTECTED] and destroy all copies of the original message and any attachments. Any views or opinions presented are solely those of the author and do not necessarily represent those of QUMAS. QUMAS has a virus detection policy but cannot accept responsibility for any loss or damage arising from the opening or use of this email and/or attachments.