User's Manual

152 Chapter 11. Services Tutorials
private QueryComponent m_query;
private FilterComponent m_typeFilter;
private ResultsPane m_results;
public NoteSearchComponent() {
super("note:search", Note.XML_NS);
m_typeFilter = new ObjectTypeFilterComponent(Note.BASE_DATA_OBJECT_TYPE);
m_query = new BaseQueryComponent();
m_query.add(m_typeFilter);
m_results = new ResultsPane(m_query);
Form form = new Form("search");
form.add(m_query):
form.add(new Submit("Search notes"));
add(m_query);
add(m_results);
}
}
Example 11-19. Completed search component
11.6.3. Providing a new Query engine
This section of the tutorial outlines the steps required to implement a new query engine for performing
searches against an external index.
MORE NEEDED HERE
11.6.4. Providing a new Search indexer
This section of the tutorial outlines the steps required to implement an search indexer which receives
update notifications when a domain object is changed, retrieves metadata and content and builds an
index.
From Dan ... to manually hack the PL/SQL for the sync_index’ method and remove the keyword
’online’ from the code. This will do offline rebuilds of the search index. The potential problem with
this is that this locks out any other threads touching the search index - including end user searches &
metadata updates from authors editing content. As such it could severely impact on scalability, so EE
is definitely preferable to this.
MORE NEEDED HERE