ERAutoIndex Class Reference

Inherits er::indexing::ERIndex.

Collaboration diagram for ERAutoIndex:

Collaboration graph
[legend]

List of all members.

Classes

class  AutoTransactionHandler
class  Configuration
class  ConfigurationEntry

Public Member Functions

 ERAutoIndex (String name, NSDictionary indexDef)
void reindexAllObjects ()

Protected Member Functions

NSSet entities ()
boolean handlesEntity (String name)
boolean handlesObject (EOEnterpriseObject eo)

Private Attributes

final Configuration _configuration = new Configuration()
NSSet< String_entities = NSSet.EmptySet

Static Private Attributes

static ERXAsyncQueue< Transaction_queue


Detailed Description

   File Documents.indexModel is 
   {
     // index class to use, default is er.indexing.ERIndex
     index = com.foo.SomeIndexClass;
     // url for the index files
     store = "file://tmp/Document&quot;;
     // if the index should be double-buffered (currently unused)
     buffered = false|true;
     // entities in this index
     entities = (Asset, File, Media);
     // properties to index, these are key paths off the objects
     // and are also used for the names of the index fields.
     // these don't need to be attributes or relationships
     // but can also be simple methods. In fact, if you have multiple
     // entities in your index, you will need to support a common set of 
     // these properties
     properties = {
         someAttribute = {
             // if the index should be stored
             store = "NO|YES|COMPRESS";
             // if the index is tokenized
             index = "NO|TOKENIZED|UN_TOKENIZED|NO_NORMS";
             // no idea what this does. consult the lucene docs
             termVector = "NO|YES|WITH_POSITIONS|WITH_OFFSETS|WITH_POSITIONS_OFFSETS";
             // which analyzer class to use. For german stuff, you'll
             // use the org.apache.lucene.analysis.de.GermanAnalyzer.
             analyzer = com.foo.SomeAnalyzerClass;
             // optional formater for the value
             format = com.foo.SomeFormatClass;
             // optional number format for the value
             numberformat = "0";
             // optional date format for the value
             dateformat = "yyyy.mm.dd";
         };
         someRelatedObject.name = {...};
         someRelationship.name = {...};
     };
 }

 

Author:
ak

Constructor & Destructor Documentation

ERAutoIndex ( String  name,
NSDictionary  indexDef 
)


Member Function Documentation

NSSet entities (  )  [protected]

boolean handlesEntity ( String  name  )  [protected]

boolean handlesObject ( EOEnterpriseObject  eo  )  [protected]

Reimplemented from ERIndex.

void reindexAllObjects (  ) 


Member Data Documentation

final Configuration _configuration = new Configuration() [private]

NSSet<String> _entities = NSSet.EmptySet [private]

ERXAsyncQueue<Transaction> _queue [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:20 2012 for Project Wonder by  doxygen 1.5.8