diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_parseSearchString.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_parseSearchString.xml index 0876b7d095e1f482fb5de5e5a0a57b0616c4bc9b..a68188aebc81cfb452ec1d35f973597578dd19ce 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_parseSearchString.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_parseSearchString.xml @@ -56,8 +56,21 @@ <value> <string encoding="cdata"><![CDATA[ """\n -Make SQLCatalog parse given search string and generate an Abstract Syntax Tree.\n -Then, walk this tree and categorize criterion by type (and their alias, see code).\n + Make SQLCatalog parse given search string and generate an Abstract Syntax Tree.\n + Then, walk this tree and categorize criterion by type (and their alias, see code).\n + \n + Example:\n + * input:\n + word_to_search_for "exact_phrase" +containing_all_the_words -without_word created:1w reference:nxd-test version:001 language:en contributor_title:John mine:yes newest:yes\n +\n + * output\n + {\'newest\': \'yes\', \n + \'reference\': \'nxd-test\', \n + \'language\': \'en\', \n + \'mine\': \'yes\', \n + \'searchabletext\': \'word_to_search_for exact_phrase +containing_all_the_words -without_word John\', \n + \'version\': \'001\', \n + \'creation_from\': DateTime(\'2010/02/23 13:11:11.698 GMT+2\')}\n """\n from DateTime import DateTime\n \n @@ -121,6 +134,10 @@ criterion_alias_dict = {\n \'source_reference\': (True, None),\n \'creation_from\': (True, None),\n \'searchabletext\': (True, None),\n + # indicates user search only within owned documents\n + \'mine\': (True, None),\n + # indicates user search only the newest versions\n + \'newest\': (True, None),\n }\n \n DEFAULT_CRITERION_ALIAS = \'searchabletext\'\n diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index b6f9e0e3aea1e96a1e1bfe03cfc943d22151207e..09518278e84fa51aacb0f04349cdcd977d32414e 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -1495 \ No newline at end of file +1497 \ No newline at end of file