Changes between Version 5 and Version 6 of XPATH


Ignore:
Timestamp:
Apr 17, 2009, 2:22:29 AM (15 years ago)
Author:
heikki
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XPATH

    v5 v6  
    1818A search on Google does not return too many insightful results. One implementation of XPATH against Lucene can be found in the CMS [http://wiki.alfresco.com/wiki/Search_Documentation Alfresco], albeit with severe limitations: "does not currently support the attribute axis or predictes".
    1919
    20 A hint as to their implementation is the [http://wiki.alfresco.com/wiki/Search_Documentation#Lucene_Language description of Alfresco's Lucene index].
     20A hint as to their implementation is the [http://wiki.alfresco.com/wiki/Search_Documentation#Lucene_Language description of Alfresco's Lucene index]. It appears as if they use a dedicated field in the index to operate on with XPATH :
     21 {{{
     22#  PATH
     23
     24    * An XPATH expression used to select nodes
     25    * This should only be access via a phrase query (ie in "") as it requires special tokenisation
     26 }}}
     27I'm currently looking into their sources to learn more about their implementation, specificaly [http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/util/SearchLanguageConversion.html org.alfresco.util.SearchLanguageConversion].
    2128
    2229
     
    2431
    2532
     33
     34