Java Doc for SearchableId.java in  » Search-Engine » compass-2.0 » org » compass » annotations » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » compass 2.0 » org.compass.annotations 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.compass.annotations.SearchableId

SearchableId
public @interface SearchableId(Code)
Specifies a searchable id on property or field of the Searchable class.

Each searchable class must have at least one id annotation. The type of the field/property can be a simple type, or a custom class. In case of a custom class, there should be a specialized converter associtaed with it, with the preferable way of defining the converter is to use the SearchableClassConverter annotating the custom class.

A searchable class can have more than one searchable id associated with it.

For simple usage, the annotation can create a SearchableMetaData automatically (without explicitly defining one on the field/property). It will only be created if the SearchableId.name() is set to a value. Most of the attributes that can control the meta-data are provided in the searchable id as well, they are marked in the java doc.

Note, that if the SearchableId.name() is not set, no defined SearchableMetaData will be created, and Compass will end up generating an internal meta-data for it. For additional meta-datas, use the SearchableMetaData or SearchableMetaDatas .

Compass might require an internal meta-data to be created, so it can identify the correct value that match the property/field. Controlling the creation and specifics of the intenal meta-data id can be done using SearchableId.managedId() and SearchableId.managedIdIndex() .
author:
   kimchy
See Also:   Searchable
See Also:   SearchableClassConverter
See Also:   SearchableMetaData
See Also:   SearchableMetaDatas



Field Summary
 Stringaccessor
     The property accessor that will be fetch and write the property value.

It is automatically set based on where the annotation is used, but can be explicitly set.

 Stringanalyzer
     The analyzer of the auto generated SearchableMetaData .
 floatboost
     The boost of the auto generated SearchableMetaData .
 Stringconverter
     The converter of the auto generated SearchableMetaData .
 ExcludeFromAllexcludeFromAll
     The execlude from all of the auto generated SearchableMetaData .
 Stringformat
     The format of the auto generated SearchableMetaData .
 StringidConverter
     Converter that will apply to the id mapping ( org.compass.core.mapping.osem.ClassIdPropertyMapping ).
 Indexindex
     The index of the auto generated SearchableMetaData .
 ManagedIdmanagedId
     Controls if the internal meta-data id creation.
 ManagedIdIndexmanagedIdIndex
     If the internal meta-data id is created, controls it's index parameter.
 Stringname
     The name of the auto generated SearchableMetaData .
 booleanomitNorms
     The termVector of the auto generated SearchableMetaData .
 booleanoverride
     If there is already an existing id with the same field/property name defined, will override it.
 Reversereverse
     The reverse of the auto generated SearchableMetaData .
 SpellCheckspellCheck
     Should this propety be included in the spell check index.
 Storestore
     The store of the auto generated SearchableMetaData .
 TermVectortermVector
     The termVector of the auto generated SearchableMetaData .



Field Detail
accessor
String accessor(Code)
The property accessor that will be fetch and write the property value.

It is automatically set based on where the annotation is used, but can be explicitly set. Compass also supports custom property accessors, registered under a custom name, which can then be used here as well.




analyzer
String analyzer(Code)
The analyzer of the auto generated SearchableMetaData . Maps to org.compass.annotations.SearchableMetaData.analyzer .

The meta-data will be auto generated only if the name has a value.




boost
float boost(Code)
The boost of the auto generated SearchableMetaData . Maps to org.compass.annotations.SearchableMetaData.boost .

The meta-data will be auto generated only if the name has a value.




converter
String converter(Code)
The converter of the auto generated SearchableMetaData . Maps to org.compass.annotations.SearchableMetaData.converter . The meta-data will be auto generated only if the name has a value.

This converter will also be used for an internal meta-data id (if required to be generated).




excludeFromAll
ExcludeFromAll excludeFromAll(Code)
The execlude from all of the auto generated SearchableMetaData . Maps to org.compass.annotations.SearchableMetaData.excludeFromAll .

The meta-data will be auto generated only if the name has a value.




format
String format(Code)
The format of the auto generated SearchableMetaData . Maps to org.compass.annotations.SearchableMetaData.format . The meta-data will be auto generated only if the name has a value.

This format will also be used for an internal meta-data id (if required to be generated).




idConverter
String idConverter(Code)
Converter that will apply to the id mapping ( org.compass.core.mapping.osem.ClassIdPropertyMapping ). Defaults to the org.compass.core.mapping.osem.ClassPropertyMapping .



index
Index index(Code)
The index of the auto generated SearchableMetaData . Maps to org.compass.annotations.SearchableMetaData.index .

The meta-data will be auto generated only if the name has a value.




managedId
ManagedId managedId(Code)
Controls if the internal meta-data id creation.



managedIdIndex
ManagedIdIndex managedIdIndex(Code)
If the internal meta-data id is created, controls it's index parameter.



name
String name(Code)
The name of the auto generated SearchableMetaData . Maps to org.compass.annotations.SearchableMetaData.name .

The meta-data will be auto generated only if the name has a value.




omitNorms
boolean omitNorms(Code)
The termVector of the auto generated SearchableMetaData . Maps to SearchableMetaData.omitNorms .

The meta-data will be auto generated only if the name has a value.




override
boolean override(Code)
If there is already an existing id with the same field/property name defined, will override it.



reverse
Reverse reverse(Code)
The reverse of the auto generated SearchableMetaData . Maps to org.compass.annotations.SearchableMetaData.reverse .

The meta-data will be auto generated only if the name has a value.




spellCheck
SpellCheck spellCheck(Code)
Should this propety be included in the spell check index.

Note, most times this is not requried to be configured, since by default, the spell check index uses the "all" property.




store
Store store(Code)
The store of the auto generated SearchableMetaData . Maps to org.compass.annotations.SearchableMetaData.store .

The meta-data will be auto generated only if the name has a value.




termVector
TermVector termVector(Code)
The termVector of the auto generated SearchableMetaData . Maps to org.compass.annotations.SearchableMetaData.termVector .

The meta-data will be auto generated only if the name has a value.






www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.