Java Doc for SearchIndexer.java in  » Forum » yazd » com » Yasna » forum » 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 » Forum » yazd » com.Yasna.forum 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.Yasna.forum.SearchIndexer

All known Subclasses:   com.Yasna.forum.database.DbSearchIndexer,
SearchIndexer
public interface SearchIndexer (Code)
Defines properties of the Yazd indexer for searching. Indexing can either be done real-time by calling indexMessage() every time a new message is created, or by running the indexer in timed update mode. The latter mode is probably preferable since it allows for faster message posting.

The automated updating mode can be adjusted by setting how often batch indexing is done. You can adjust this interval to suit the needs of your forums. Frequent updates mean that messages will be searchable more quickly. Less frequent updates use fewer system resources.
See Also:   ForumFactory.getSearchIndexer





Method Summary
public  voidaddToIndex(ForumMessage message)
     Adds an individual message to the index.
public  intgetHoursUpdateInterval()
     Returns the number of hours that the indexer waits between each update.
public  DategetLastIndexedDate()
     Returns the date that the last update to the index was made.
public  intgetMinutesUpdateInterval()
     Returns the number of minutes that the indexer waits between each update.
public  booleanisAutoIndexEnabled()
     Returns true if auto indexing is turned on.
public  voidrebuildIndex()
     Manually rebuild the entire index.
public  voidremoveFromIndex(ForumMessage message)
     Removes an individual message from the index.
public  voidsetAutoIndexEnabled(boolean value)
     Enables or disables auto indexing.
public  voidsetUpdateInterval(int minutes, int hours)
     Sets the amount of time that indexer should wait between updating the index.
public  voidupdateIndex()
     Manually update the index to include all new messages since the last update.



Method Detail
addToIndex
public void addToIndex(ForumMessage message)(Code)
Adds an individual message to the index. This method is useful for doing real-time indexing. However, for maximum posting speed this method can be ignored. In that case, the automatic indexer will pick up all new messages at the next index interval.
Parameters:
  message - the message to add to the index.



getHoursUpdateInterval
public int getHoursUpdateInterval()(Code)
Returns the number of hours that the indexer waits between each update. the number of hours between automatic index updates.



getLastIndexedDate
public Date getLastIndexedDate()(Code)
Returns the date that the last update to the index was made.



getMinutesUpdateInterval
public int getMinutesUpdateInterval()(Code)
Returns the number of minutes that the indexer waits between each update. the number of minutes between automatic index updates.



isAutoIndexEnabled
public boolean isAutoIndexEnabled()(Code)
Returns true if auto indexing is turned on. When auto indexing is on, it will update the search index at the interval specified by the setUpdateInterval method. true if auto indexing is turned on.



rebuildIndex
public void rebuildIndex()(Code)
Manually rebuild the entire index. This operation can be slow if the index is large.



removeFromIndex
public void removeFromIndex(ForumMessage message)(Code)
Removes an individual message from the index.
Parameters:
  message - the message to remove from the index.



setAutoIndexEnabled
public void setAutoIndexEnabled(boolean value)(Code)
Enables or disables auto indexing. When auto indexing is on, it will update the search index at the interval specified by the setUpdateInterval method.
Parameters:
  value - true to turn auto indexing on, false to turn it off.



setUpdateInterval
public void setUpdateInterval(int minutes, int hours)(Code)
Sets the amount of time that indexer should wait between updating the index.
Parameters:
  minutes - the number of minutes between automatic index updates.
Parameters:
  hours - the number of hours between automatic index updates.



updateIndex
public void updateIndex()(Code)
Manually update the index to include all new messages since the last update.



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