Personalization Hub Manual / Version 2307
Table Of ContentsTypically, you access your Search Engine from within a content bean implementation. Within the bean, you will do the following things:
Read the query string from a property of the associated Content object
Use a Search Engine connection to send the query to the Search Engine
Retrieve the result object
Iterate over the results to map them to content beans which can then be provided to the template for rendering.
If your query string contains calls to search functions, you can't just provide the string to the
Search Engine because the Search
Engine doesn't know what to do with the functions. So, you first got to evaluate the functions and
replace their calls by their respective results, thus creating a syntactically correct query string that can be
send to the engine. Evaluation and replacement of search function calls is performed by the
SearchFunctionPreprocessor
.