Java Doc for StringSearchConstraint.java in  » Database-ORM » MMBase » org » mmbase » storage » search » 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 » Database ORM » MMBase » org.mmbase.storage.search 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mmbase.storage.search.StringSearchConstraint

All known Subclasses:   org.mmbase.storage.search.implementation.BasicStringSearchConstraint,
StringSearchConstraint
public interface StringSearchConstraint extends FieldConstraint(Code)
A constraint specifically for advanced types of text searches.

In addition to searchterms, a search type and a match type can be specified:

The search type specifies how the search is performed: Must be one of:

The match type specifies how individual words in the search terms are matched with words in the searched text.

The searchterms may containt the following wildchard characters as well:

  • % for any string
  • _ for a single character

Depending on searchtype and searchmode, the following parameters can be set:

  • StringSearchConstraint.PARAM_FUZZINESS PARAM_FUZZINESS - Float, specifies maximum allowed number of typo's per word, expressed as fraction of word length. (E.g. 0,2 means: maximum 2 typo's for 10 letter words.).
    This parameter is only relevant when used with match type MATCH_TYPE_FUZZY. It can only be set for this match type, and is cleared when the match type is set to another value.
  • StringSearchConstraint.PARAM_PROXIMITY_LIMIT PARAM_PROXIMITY_LIMIT - Integer, specifies maximum distance between searched words.
    This parameter is only relevant when used with search type SEARCH_TYPE_PROXIMITY_ORIENTED. It can only be set for this search type, and is cleared when the search type is set to another value.

author:
   Rob van Maris
version:
   $Id: StringSearchConstraint.java,v 1.5 2007/02/24 21:57:50 nklasens Exp $
since:
   MMBase-1.7


Field Summary
final public static  String[]MATCH_TYPE_DESCRIPTIONS
    
final public static  intMATCH_TYPE_FUZZY
     Match type for fuzzy matching.
final public static  intMATCH_TYPE_LITERAL
     Match type for literal matching.
final public static  intMATCH_TYPE_SYNONYM
     Match type for synonym matching.
final public static  StringPARAM_FUZZINESS
     Name for parameter specifying fuzziness for fuzzy matching.
final public static  StringPARAM_PROXIMITY_LIMIT
     Name for parameter specifying proximity limit for proximity oriented search.
 String[]SEARCH_TYPE_DESCRIPTIONS
    
final public static  intSEARCH_TYPE_PHRASE_ORIENTED
     Search type for phrase oriented search.
final public static  intSEARCH_TYPE_PROXIMITY_ORIENTED
     Search type for proximity oriented search.
final public static  intSEARCH_TYPE_WORD_ORIENTED
     Search type for word oriented search.


Method Summary
 intgetMatchType()
     Gets the match type.
 Map<String, Object>getParameters()
     Gets value of additional parameters.
 List<String>getSearchTerms()
     Gets the list of searchterms.
 intgetSearchType()
     Gets the search type, this specifies how the search is performed.
public  StringtoString()
     Returns a string representation of this StringSearchConstraint.

Field Detail
MATCH_TYPE_DESCRIPTIONS
final public static String[] MATCH_TYPE_DESCRIPTIONS(Code)
Match type descriptions corresponding to the match type values: StringSearchConstraint.MATCH_TYPE_LITERAL , StringSearchConstraint.MATCH_TYPE_FUZZY , and StringSearchConstraint.MATCH_TYPE_SYNONYM



MATCH_TYPE_FUZZY
final public static int MATCH_TYPE_FUZZY(Code)
Match type for fuzzy matching.



MATCH_TYPE_LITERAL
final public static int MATCH_TYPE_LITERAL(Code)
Match type for literal matching.



MATCH_TYPE_SYNONYM
final public static int MATCH_TYPE_SYNONYM(Code)
Match type for synonym matching.



PARAM_FUZZINESS
final public static String PARAM_FUZZINESS(Code)
Name for parameter specifying fuzziness for fuzzy matching.



PARAM_PROXIMITY_LIMIT
final public static String PARAM_PROXIMITY_LIMIT(Code)
Name for parameter specifying proximity limit for proximity oriented search.



SEARCH_TYPE_DESCRIPTIONS
String[] SEARCH_TYPE_DESCRIPTIONS(Code)
Search type descriptions corresponding to the search type values: StringSearchConstraint.SEARCH_TYPE_WORD_ORIENTED , StringSearchConstraint.SEARCH_TYPE_PHRASE_ORIENTED , and StringSearchConstraint.SEARCH_TYPE_PROXIMITY_ORIENTED



SEARCH_TYPE_PHRASE_ORIENTED
final public static int SEARCH_TYPE_PHRASE_ORIENTED(Code)
Search type for phrase oriented search.



SEARCH_TYPE_PROXIMITY_ORIENTED
final public static int SEARCH_TYPE_PROXIMITY_ORIENTED(Code)
Search type for proximity oriented search.



SEARCH_TYPE_WORD_ORIENTED
final public static int SEARCH_TYPE_WORD_ORIENTED(Code)
Search type for word oriented search.





Method Detail
getMatchType
int getMatchType()(Code)
Gets the match type.



getParameters
Map<String, Object> getParameters()(Code)
Gets value of additional parameters. The parameters, as an unmodifiable Map.



getSearchTerms
List<String> getSearchTerms()(Code)
Gets the list of searchterms. The searchterms, as an unmodifiable List.



getSearchType
int getSearchType()(Code)
Gets the search type, this specifies how the search is performed.



toString
public String toString()(Code)
Returns a string representation of this StringSearchConstraint. The string representation has the form "StringSearchConstraint(inverse:<:inverse>, field:<field>, casesensitive:<casesensitive>, searchtype:<searchtype>, matchtype:<matchtype>, parameters:<parameters>, searchterms:<searchterms>)" where



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