http://cvs.apache.org/viewcvs.cgi/xml-xindice/java/src/org/apache/xindice/core/indexer/Indexer.java?annotate=1.6
Javadoc for method getPattern(), lines 63-76. It lists supported pattern types. Also note, that there are two types of indexes - Name and Value. First one is good for tests on presense of element / attribute, second one - for tests on values of the element / attribute.
Vadim
Vadim Gritsenko wrote:
Wojtek wrote:
----- Original Message ----- From: "Vadim Gritsenko" <[EMAIL PROTECTED]>
No; more like ... -p [EMAIL PROTECTED] , so you will be able to find any user
by his login quickly.
Sorry, I'd made a mistake. I thought about pattern: ...-p [EMAIL PROTECTED]/url
maybe ...-p [EMAIL PROTECTED]/url is correct? I am afraid I expect too much :)
You don't need "url" part - except the case when you have lots of users with same username but only some of them have "url'. In this artificial example, you would create two indexes: first index on "[EMAIL PROTECTED]", so you can find users by login quickly, and second on "url" element, to filter out users who do not have url element. Hope you got the point - you can have an index for each predicate you want to speed up.
Vadim