![]() SELECT * FROM Document D WHERE CONTAINS(D, 'cmis:name:\'Tutorial\'') SELECT * FROM Document WHERE CONTAINS("quick") These are some examples of the CMIS query language. Note: When checking equality of a string field SELECT * FROM cmis:document WHERE abc:stringfield = 'stringvalue' when using the exact term search feature, it is important to consider how the field is indexed. You can also use third-party tools that use CMIS as their query language. Queries run with CMIS are generally used to make sure that what you have imported has worked correctly. The CMIS specification outlines the usable search query syntax. If you want to use the v1 REST API you must indicate this by using the parameter language=CMIS. CMIS is often used when you migrate to or from Alfresco. ![]() The CMIS query language can be used with the Search Enterprise v1 REST API or by using the CMIS interface. ![]() characters that have a special meaning in Lucene) need to be escaped using the backslash. When prefixes and fully qualified names are used, the property has to be prefixed with the symbol and this is one of the main differences between AFTS and Lucene. In this case the property name uses the full namespace and the local Oriented Programming) It must be uniquely associated to a namespace and to a content Oriented Programming) The prefix is the short form of a given namespace. The property is therefore assumed to exist and to be valid in the default content Oriented Programming) In this case it will be associated to the default namespace. This avoids conflicts between local names used in multiple models, for example finance:name and cm:name.Ī property can be declared in queries using three notations: They are identified by qualified names, meaning they are composed of: Properties are attributes defined in an Alfresco content model. The Search Enterprise documentation provides Apache Lucene - Query Parser Syntax information specific to Alfresco. For more details see Apache Lucene - Query Parser Syntax. The Lucene language is provided by the IR framework and the query API is built on top of the Lucene standard query parser. However, there are some shared aspects that provide the same behavior in the languages, for more see Field queries.įor a list of unsupported features see Unsupported. The search string syntax depends on the given query language and can differ significantly between AFTS, Lucene, and CMIS. If you require any additional queries to be written in the future, Alfresco recommends the use of AFTS. In addition to AFTS the Lucene, and CMIS query languages are also supported. AFTS is the primary query language for use with Search Enterprise.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |