Read without ads and support Scribd by becoming a Scribd Premium Reader.
 
Reference Documentation
2.2.0 GACopyright © 2004-2008 Shay Banon (kimchy), Alan Hardy
Copies of this document may be made for your own use and for distribution to others, provided that you do notcharge any fee for such copies and further provided that each copy contains this Copyright Notice, whetherdistributed in print or electronically.
 
Table of Contents
Preface ................................................................................................................................................
1. Introduction
..................................................................................................................................1.1. Overview............................................................................................................................. 11.2. I use .................................................................................................................................... 21.2.1. ... Lucene.................................................................................................................. 21.2.2. ... Domain Model....................................................................................................... 41.2.3. ... Xml Model............................................................................................................ 41.2.4. ... No Model.............................................................................................................. 41.2.5. ... ORM Framework ................................................................................................... 41.2.6. ... Spring Framework ................................................................................................. 5I. Compass Core .................................................................................................................................
2. Introduction
..........................................................................................................................2.1. Overview..................................................................................................................... 72.2. Session Types.............................................................................................................. 82.3. Session Lifecycle......................................................................................................... 82.4. Template and Callback ................................................................................................. 9
3. Configuration
........................................................................................................................3.1. Programmatic Configuration......................................................................................... 103.2. XML/JSON Configuration............................................................................................ 123.2.1. Schema Based Configuration.............................................................................. 123.2.2. JSON Based Configuration................................................................................ 143.2.3. DTD Based Configuration.................................................................................. 143.3. Obtaining a Compass reference..................................................................................... 153.4. Rebuilding Compass..................................................................................................... 153.5. Configuring Callback Events........................................................................................ 15
4. Connection
............................................................................................................................4.1. File System Store......................................................................................................... 164.2. RAM Store.................................................................................................................. 174.3. Jdbc Store.................................................................................................................... 174.3.1. Managed Environment....................................................................................... 184.3.2. Data Source Provider......................................................................................... 184.3.3. File Entry Handler............................................................................................. 204.3.4. DDL................................................................................................................. 204.4. Lock Factory................................................................................................................ 214.5. Local Directory Cache.................................................................................................. 214.6. Lucene Directory Wrapper............................................................................................ 224.6.1. SyncMemoryMirrorDirectoryWrapperProvider................................................... 224.6.2. AsyncMemoryMirrorDirectoryWrapperProvider................................................. 23
5. Search Engine
.......................................................................................................................5.1. Introduction................................................................................................................. 245.2. Alias, Resource and Property........................................................................................ 245.2.1. Using Resource/Property.................................................................................... 245.3. Analyzers.................................................................................................................... 245.3.1. Configuring Analyzers....................................................................................... 255.3.2. Analyzer Filter.................................................................................................. 265.3.3. Handling Synonyms.......................................................................................... 265.4. Similarity..................................................................................................................... 275.5. Query Parser................................................................................................................ 27Compass - Java Search Engine ii
 
5.6. Index Structure............................................................................................................. 275.7. Transaction.................................................................................................................. 285.7.1. Locking............................................................................................................ 285.7.2. Transaction Processors....................................................................................... 295.8. All Support.................................................................................................................. 345.9. Sub Index Hashing....................................................................................................... 355.9.1. Constant Sub Index Hashing.............................................................................. 365.9.2. Modulo Sub Index Hashing................................................................................ 375.9.3. Custom Sub Index Hashing................................................................................ 395.10. Optimizers................................................................................................................. 405.11. Merge........................................................................................................................ 405.11.1. Merge Policy................................................................................................... 405.11.2. Merge Scheduler.............................................................................................. 415.12. Index Deletion Policy................................................................................................. 415.13. Spell Check / Did You Mean....................................................................................... 425.13.1. Spell Index...................................................................................................... 425.14. Direct Lucene............................................................................................................. 435.14.1. Wrappers........................................................................................................ 435.14.2. Searcher And IndexReader............................................................................... 44
6. OSEM - Object/Search Engine Mapping
...............................................................................6.1. Introduction................................................................................................................. 456.2. Searchable Classes....................................................................................................... 456.2.1. Alias................................................................................................................. 476.2.2. Root................................................................................................................. 476.2.3. Sub Index.......................................................................................................... 476.3. Searchable Class Mappings........................................................................................... 476.3.1. Searchable Id and Searchable Meta Data............................................................. 476.3.2. Searchable Id Component.................................................................................. 486.3.3. Searchable Parent.............................................................................................. 496.3.4. Searchable Property and Searchable Meta Data................................................... 506.3.5. Searchable Dynamic Property............................................................................. 506.3.6. Searchable Constant.......................................................................................... 526.3.7. Searchable Dynamic Meta Data.......................................................................... 526.3.8. Searchable Reference......................................................................................... 536.3.9. Searchable Component...................................................................................... 546.3.10. Searchable Cascade......................................................................................... 556.3.11. Searchable Analyzer........................................................................................ 566.3.12. Searchable Boost............................................................................................. 566.4. Specifics...................................................................................................................... 576.4.1. Handling Collection Types................................................................................. 576.4.2. Managed Id....................................................................................................... 576.4.3. Handling Inheritance......................................................................................... 586.4.4. Polymorphic Relationships................................................................................. 596.4.5. Cyclic Relationships.......................................................................................... 606.4.6. Annotations and Xml Combined......................................................................... 606.4.7. Support Unmarshall........................................................................................... 606.4.8. Configuration Annotations................................................................................. 616.5. Searchable Annotations Reference................................................................................. 616.6. Searchable Xml Reference............................................................................................ 616.6.1. compass-core-mapping...................................................................................... 616.6.2. class................................................................................................................. 616.6.3. contract............................................................................................................. 63Compass - Java Search Engine Framework Compass - Java Search Engine iii
Search History:
Searching...
Result 00 of 00
00 results for result for
  • p.
  • Notes
    Load more