> 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.

This "shouldn't" have an effect. Are you using namespaces? What JVM are
you running (there have been reports of people moving from 1.4.0 to
1.4.2
and indexes not working any longer)? 

I'm in the process of creating unit tests for the indexing
infrastructure
so keep and eye on bugzilla :).

-k.

Hi Kevin.

I think the JVM is 1.4.1 ( I don't have the machine near me am the
moment).
I'll download the latest source from CVS and see if I can find the
problem
late next week.

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.

Reply via email to