hi,all,
I found the @attribute='value' operation will fast after create attribute index, but function like matches,contains,starts-with has no effect even after create text index. how to optimum it , how to create path index, range index?
thanks.
--
此致
easy
莫愁前路无知己,天下谁人不识君。
Hi Easy,
I found the @attribute='value' operation will fast after create attribute index, but function like matches,contains,starts-with has no effect even after create text index. how to optimum it , how to create path index, range index?
matches() works on arbitrary regular expressions, which is why a value index won’t be of any help. contains() is difficult, too, because it allows you to search for arbitrary substrings. starts-with() could indeed be rewritten to take advantage of an index structure, but this hasn’t been done yet.
Christian
Thanks.
but there is some way to create path/range index manually?
--
此致
easy
莫愁前路无知己,天下谁人不识君。
At 2013-11-19 04:02:28,"Christian Grün" christian.gruen@gmail.com wrote:
Hi Easy,
I found the @attribute='value' operation will fast after create attribute index, but function like matches,contains,starts-with has no effect even after create text index. how to optimum it , how to create path index, range index?
matches() works on arbitrary regular expressions, which is why a value index won’t be of any help. contains() is difficult, too, because it allows you to search for arbitrary substrings. starts-with() could indeed be rewritten to take advantage of an index structure, but this hasn’t been done yet.
Christian
I can recommend our Wiki article on indexing [1]; it should answer some of your questions.
Best, Christian
[1] http://docs.basex.org/wiki/Indexes
Am 19.11.2013 00:51 schrieb "easy" lin_xd@126.com:
Thanks.
but there is some way to create path/range index manually?
-- 此致
easy
莫愁前路无知己,天下谁人不识君。
At 2013-11-19 04:02:28,"Christian Grün" christian.gruen@gmail.com wrote:
Hi Easy,
I found the @attribute='value' operation will fast after create attribute
index, but function like matches,contains,starts-with has no effect even
after create text index. how to optimum it , how to create path index, range index?
matches() works on arbitrary regular expressions, which is why a value index won’t be of any help. contains() is difficult, too, because it allows you to search for arbitrary substrings. starts-with() could indeed be rewritten to take advantage of an index structure, but this hasn’t been done yet.
Christian
oh, that's to say, basex create path index automatically? no way to create a path index like : node1/node2/@attribue ?
--
此致
easy
莫愁前路无知己,天下谁人不识君。
At 2013-11-19 08:24:26,"Christian Grün" christian.gruen@gmail.com wrote:
I can recommend our Wiki article on indexing [1]; it should answer some of your questions.
Best, Christian
[1] http://docs.basex.org/wiki/Indexes
Am 19.11.2013 00:51 schrieb "easy" lin_xd@126.com:
Thanks.
but there is some way to create path/range index manually?
-- 此致
easy
莫愁前路无知己,天下谁人不识君。
At 2013-11-19 04:02:28,"Christian Grün" christian.gruen@gmail.com wrote:
Hi Easy,
I found the @attribute='value' operation will fast after create attribute index, but function like matches,contains,starts-with has no effect even after create text index. how to optimum it , how to create path index, range index?
matches() works on arbitrary regular expressions, which is why a value index won’t be of any help. contains() is difficult, too, because it allows you to search for arbitrary substrings. starts-with() could indeed be rewritten to take advantage of an index structure, but this hasn’t been done yet.
Christian
hi,all
I have download the trunk version basex, but I run in centeros, is there some different for different os?
--
此致
easy
莫愁前路无知己,天下谁人不识君。
At 2013-11-19 04:02:28,"Christian Grün" christian.gruen@gmail.com wrote:
Hi Easy,
I found the @attribute='value' operation will fast after create attribute index, but function like matches,contains,starts-with has no effect even after create text index. how to optimum it , how to create path index, range index?
matches() works on arbitrary regular expressions, which is why a value index won’t be of any help. contains() is difficult, too, because it allows you to search for arbitrary substrings. starts-with() could indeed be rewritten to take advantage of an index structure, but this hasn’t been done yet.
Christian
Hi Easy,
I have download the trunk version basex, but I run in centeros, is there some different for different os?
the jar and zip versions work on all platforms supporting Java. Versions for special platforms can be found on our download page [1].
Best, Christian
basex-talk@mailman.uni-konstanz.de