Andrew Hind
7098bab5ea
RM: Support query for empty strings against untokenised text properties
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16622 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-30 14:36:46 +00:00
Dave Ward
04c877b808
Merged V3.2 to HEAD
...
16187: Merged V3.1 to V3.2
16185: AbstractLuceneIndexerAndSearcherFactory.getTransactionId() must return null when there is no transaction
16171: Merged V3.1 to V3.2
16168: ETHREEOH-2797: Force patch.db-V2.2-Person to apply one more time to fix up corrupt users created by LDAP Import
- Problem due to ETHREEOH-2023, fixed in 3.1.1
- Also corrects ldap.synchronisation.defaultHomeFolderProvider to be userHomesHomeFolderProvider
- Also requires fix to ETHREEOH-2475 to fix up duplicate users
16167: ETHREEOH-2475: Fixed nested transaction handling in AbstractLuceneIndexerAndSearcherFactory to allow duplicate user processing in PersonServiceImpl to actually work
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16363 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-18 10:52:57 +00:00
Andrew Hind
3351a38b6c
Merged V3.2 to HEAD
...
16006: Merged V3.1 to V3.2
16003: Fix for ETHREEOH-2736: FTS Cleaning process removes valid search terms
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@16046 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-09-02 11:27:55 +00:00
Derek Hulley
de4467b12d
Removed 'afterPropertiesSet' and 'InitializingBean' from LuceneIndexBackupComponent
...
- It should use a bootstrap component as it accesses the NodeService
- No bug raised; it just needs fixing
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15926 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-26 12:33:10 +00:00
Andrew Hind
f8dbb57c5b
RM: more capabilities tests and fixes
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15877 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-25 08:20:51 +00:00
Andrew Hind
93876b8079
Fix for MOB-1221: Sorting on an indexed field that has not yet been applied to any node causes an exception in the SearchService
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15702 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-08-12 14:27:38 +00:00
Andrew Hind
5fbdc2d636
RM: Added support to query association type information on child relationships to a node
...
- PRIMARYASSOCTYPEQNAME:"test:assocType"
- ASSOCTYPEQNAME:"test:assocType"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15505 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-31 10:50:12 +00:00
Andrew Hind
dece4d5a4b
Fix for MOB-1185: Alfresco FTS does not respect dual tokenisation when ordering (and locale etc etc)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15300 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-21 10:34:08 +00:00
Andrew Hind
86d1ec7516
MOB-1179: Added sort support to Alfresco FTS
...
- Any sort info added to Search parameters will be respected
- the field can be "Score", "prefix:lname" "{uri}lname" and "@{uri}lname" or "lname" (in the default namespace)
- only exposed field can be used as defined for FTS and the default namespace will be used if ommitted ...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15291 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-20 20:44:39 +00:00
Andrew Hind
7eb5cc71a4
Support "now" for dates in lucene queries. d 📅 now d 📅 "now" d 📅 [MIN TO NOW] should all be supported
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15226 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-16 11:12:32 +00:00
Kevin Roast
fc3a3f2a49
Fix to LuceneQueryParser to throw a descriptive exception rather than cause a Nullptr when an aspect that is not present in the model is specified in the query string.
...
- Spotted when running an old RM query against new model
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15084 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-07-07 08:17:38 +00:00
Mark Rogers
31c439521f
ALFCOM-2981 Cannot find moderated site if I am a 'non-owner' using search field
...
- Moderated sites now have CONSUMER role for everyone.
- Note that I havn't fixed the permissions of existing Moderates Sites, This will only work for new and updated sites.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14793 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-18 16:13:08 +00:00
Andrew Hind
e3df62325d
Extended zone support for multiple zones and added Authorities (including people) to zones. (MOB-762: Part 1)
...
WCM and Share groups are not in the default zones so they can be hidden in the UI.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14762 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-17 11:57:21 +00:00
Jan Vonka
0dcda8c629
MTDemoTest fix - fallout from r14588 (changes to authorities)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14695 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-12 14:07:12 +00:00
Andrew Hind
592a2bb2fc
Added support for paging using SearchParameters on the SearchService API (ARCHIVE-85)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14651 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-11 10:07:42 +00:00
Dave Ward
d5e0432589
Merged BRANCHES/DEV/DAVEW/LDAP to HEAD
...
14587: Added new node service method getNodesWithoutParentAssocsOfType to public-services-security-context.xml (or at least my best guess at it!)
14586: Use US spelling of synchronization in filenames for consistency
14585: Lower the default user registry sync frequency to daily instead of hourly. Now users and groups are pulled over incrementally on login of missing users.
14583: Unit test for ChainingUserRegistrySynchronizer
14571: Migration patch for existing authorities previously held in users store
- Uses AuthorityService to recreate authorities in spaces store with new structure
14555: Authority service changes for LDAP sync improvements
- Moved sys:authorities container to spaces store
- All authorities now stored directly under sys:authorities
- Authorities can now be looked up directly by node service
- Secondary child associations used to model group relationships
- 'Root' groups for UI navigation determined dynamically by node service query
- cm:member association used to relate both authority containers and persons to other authorities
- New cm:inZone association relates persons and authority containers to synchronization 'zones' stored under sys:zones
- Look up of authority zone and all authorities in a zone to enable multi-zone LDAP sync
14524: Dev branch for finishing LDAP zones and upgrade impact
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14588 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-08 16:16:32 +00:00
Andrew Hind
1a261b54fd
Added generic support for lucene scalar functions and used the to implement CMIS Upper/Lower string functions (MOB-221)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14578 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-08 10:42:01 +00:00
Andrew Hind
dc74e02dfb
Fixes for ALFCOM-2942 (after the addition of subsystems etc in 3.2)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14530 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-04 11:25:37 +00:00
Andrew Hind
a8ac68a6e6
Add d:period data type (MOB-750)
...
- persistence, type conversion, and tests
- test model and index
- default set of implementations and tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14504 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-06-02 14:45:07 +00:00
Andrew Hind
801eac5c2c
Test Fix
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14470 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-28 13:46:18 +00:00
Andrew Hind
e46585becf
More SearchService refactor. Added CMIS SQL to the search service. Tidy ups. FTS supports default namespace and templates via search parameters API. (MOB-568, MOB-569)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14463 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-28 10:34:51 +00:00
Andrew Hind
7c934abbe4
Search API updates. FTS fixes for range and dual tokenisation.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-22 14:36:48 +00:00
Derek Hulley
24b8ae3b16
Reversed out revisions 14366, 14361 and 14356
...
- Just prior to this, created dev branch DEV/ANDY_HEAD_ROLLBACKS
- Andy: Switch to this branch on your local copy if you have changes to any of the files modified here
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14374 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-20 10:32:23 +00:00
Andrew Hind
464438e269
Fix bug in SearchService API refactor
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-19 15:11:49 +00:00
Andrew Hind
d195ff8542
First pass at fixes/extensions/tidy ups to the search API - part of wiring FTS up as a query language MOB-568
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14361 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-19 14:06:15 +00:00
Andrew Hind
418035df05
Fix support for CMIS SQL range and FTS for dual tokenised types. Add template support to the FTS parser. (MOB-568, MOB-219, MOB-569)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14356 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-19 09:19:55 +00:00
Jan Vonka
70d66c0f8c
Merged V3.1 to HEAD
...
13902: Merged V2.2 to V3.1
13900: Fixed ETHREEOH-1846: NullPointerException in ADMLuceneIndexerImpl if localized string is null
14167: MT - fix ETHREEOH-2015
14198: MT - fix ETHREEOH-210 and add unit tests (will also fix ALFCOM-2823 when merged forward to HEAD)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14204 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-06 11:40:13 +00:00
Andrew Hind
76890eb812
FTS: Fuzzy matching, boosted queries, sloppy phrase matching, code tidy up, add API for specifying Analysis type (MOB-571)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14174 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 20:06:57 +00:00
Andrew Hind
66b639ac77
FTS: Fuzzy matching, boosted queries, sloppy phrase matching, code tidy up, add API for specifying Analysis type (MOB-571)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-05-01 20:06:18 +00:00
Andrew Hind
46a2ffcb82
FTS - Tidy up parser, ISO9075 escape sequences, wild card queries, prefix queries, fuzzy queries - part 1, boosts - basic test (MOB-571)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14139 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-30 14:14:24 +00:00
Andrew Hind
7cd1ccae96
FTS - add range support - MOB-571
...
- range is not suported for TEXT and ALL
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14114 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-29 08:56:36 +00:00
Andrew Hind
f743983dcb
FTS Parser (MOB-571): Field Groups; Proximity; Escaping in phrases, terms, and identifiers; return to the old default to OR terms together; support for |+-! and not; forced tokenisation
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14104 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-28 13:36:38 +00:00
Jan Vonka
f28579cc8e
MOB-659 (part 2 of 2) - improve dictionary cache reset (should work even with null / cache)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14059 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-23 10:29:32 +00:00
Andrew Hind
bf949d306b
More FTS implementation (MOB-571)
...
- preliminary support for exact term matches
-cm:content, cm_content, {..}content and old @ prefixed fields
- basic tests for above + AND + OR
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14029 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-21 13:23:44 +00:00
Andrew Hind
ae5ef978d7
Performance improvement - mainly for PATHs ending * - cache isNode lookup - ENH-378
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14025 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-21 09:43:01 +00:00
Andrew Hind
9f0965fe11
Added "fuzzy" and "boost" to the FTS parser + tests and test fixes (more of MOB-571)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13992 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-17 11:20:31 +00:00
Derek Hulley
f6139dd19d
Commented out failing tests; this is newish code
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13978 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-16 12:27:01 +00:00
Andrew Hind
65d2aa1d7a
Refactor CMIS property accessors to remove duplicate code. Basic wire up for fts query language and some simple tests (MOB-574). Parser WIP (MOB-571)
...
- added support for properties and column aliases in CMIS embedded FTS
- simple pass-through column support for FTS
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13974 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-16 10:41:33 +00:00
Andrew Hind
6a20eda27f
Final parts of FTS and CMIS split (MOB-570, MOB-573). Started adding FTS as a query language (MOB-574)
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13955 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-15 12:25:53 +00:00
Andrew Hind
6c9bd6d97b
FTS Parser updates: MOB-571, MOB-233
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13940 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-14 14:29:53 +00:00
Andrew Hind
8986debad5
Split CMIS and FTS ast handling. Started extended FTS parser. First parts of MOB-570, MOB-571, MOB-573, MOB-233
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13871 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-07 09:32:10 +00:00
David Caruana
af2b4f43c4
Refactor CMIS property accessors (value / lucene mappers).
...
- remove notion of generic property accessor; consolidated on named property accessor
- build property accessors at time of CMIS Dictionary creation (cached, removes continuous creation of small objects); hooked into CMIS Property Definition
- remove property service
- lookup of property accessor quicker and constrained to properties in CMIS Dictionary
- fixup fallout in CMIS AtomPub, Web Services and Query
CMIS AtomPub, Web Services and Query tests pass.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13806 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-04-02 12:06:26 +00:00
David Caruana
8fcebdc7cf
CMIS Dictionary Refactor
...
- follows pattern of Alfresco Dictionary
- simplified and much reduced DictionaryService interface
- model now compiled and cached (no more lots of small continuous object creations)
- walk model via simple getters
- validated (no dangling references)
- fix up property inheritance
- fix up sub-types for all types
- implements strict mode only for now (i.e. doesn't go outside of CMIS doc, folder, rel and policy)
- abstract helper for building other CMIS dictionaries (e.g. mapping all types in Alfresco)
Alfresco Dictionary:
- add event for initialized or re-initialized
Fix up usage in CMIS REST, Web Services and query. Tests pass.
REST support for custom sub-types and properties now reliable as constrained by validated CMIS model.
TODO:
- hook property value accessors into CMIS Dictionary
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13768 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-27 23:13:29 +00:00
Andrew Hind
b44b075a7b
Build Fix
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13683 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-19 10:28:43 +00:00
Andrew Hind
d345c5d850
Antlr updates and embed gunit tests for lexer and parser tests - first tests for CMIS and FTS
...
- updates before starting MOB-568
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13672 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-18 15:30:07 +00:00
Andrew Hind
4d8bcb0e3a
Query parser fix ups and removal of deprecated lucene APIs from the query parser: ALFCOM-2288, ALFCOM-2289, ALFCOM-2290, MOB-587, MOB-631
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13655 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-17 15:49:04 +00:00
Andrew Hind
e32260836e
Build fix: CHK-6803, MOB-587: Missed setting to allow wildcards at the start of lucene queries.
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13637 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-16 14:30:51 +00:00
Andrew Hind
b3b960b03b
Lucene upgrade to 2.4.1: MOB-587: First round of fixes for the query parser
...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13633 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-16 12:08:04 +00:00
Andrew Hind
308e60373d
MOB-585: Upgrade to lucene 2.4.1 with all collateral damage EXCEPT for the query parser and new options
...
- passes index tests
- bootstraps
- index reader management looks OK
- should behave as before (but be faster in places ...we will see what the build box says)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13624 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-13 14:56:27 +00:00
Derek Hulley
198ebe371e
Merged V3.1 to HEAD
...
13256: Fix ETHREEOH-1221 Hard-coded use of "admin" username
___________________________________________________________________
Modified: svn:mergeinfo
Merged /alfresco/BRANCHES/V3.1:r13256
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13613 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2009-03-12 21:48:15 +00:00