From: Pierrick B. <pie...@fr...> - 2006-02-02 08:32:20
|
Kaixo, Igor Leturia a =E9crit : >> This doesn't work : the syntax expected here is not intended to be >> fully XPath-compliant. You need path expressions with named nodes >> (elements or attributes), for example : <create path=3D"//w/@CERT" >> type=3D"xs:string"/> <create path=3D"//w/@lemma" type=3D"xs:string"/>= Do >> not forget to reindex your collection after the changes. > > > OK, so that was the problem. I thought any XPath expression could do. > > > Now to the eXist developers: is there any intention to support any > XPath expression in indexes, such as the one I mentioned, in a near > future? Well... I myself would appreciate such a feature but this would have an=20 impact on performance because indexing could only occur when the entire document tree is loaded wheras eXist currently indexes "off the scratch"=20 (this explains the limitations in the path expressions). Well, as I've said many times, I would pay the penalty without any=20 problem :-) > I think it would be a great feature, as you could almost make any > kind of search in the database very fast, just by adding an > appropriate index for each kind of query you were going to do. Don't underestimate eXist's optimizations : how long does your query=20 take now ? Furthermore, It may not be the best solution to have an index=20 (whatever its structure) for each path : factorization will often have=20 better results. > It > should not be that difficult, It isn't as trivial as that. Indexing code is (too ?) firmly coupled=20 with storage code. Furthermore, a deferred indexing needs to use an=20 XPath engine which is able to cope with the "raw" documents. Well, we=20 could reuse one here... > Thanks for pointing this, but could you please tell me how do I=20 configure the verbosity? As often, Google is your friend : http://www.google.fr/search?hs=3DbpD&hl=3Dfr&client=3Dfirefox-a&rls=3Dorg= .mozilla%3Afr%3Aofficial&q=3Dexist+profiler+verbosity&btnG=3DRechercher&m= eta=3D Then : http://article.gmane.org/gmane.text.xml.exist/8153. Cheers, p.b. |