String sqlQuery = "SELECT * FROM segment WHERE summary LIKE '%" + query + "%'";
as the main search query.
It the will create a list of Documents with the appropriate fields populated from the mySQL query and that list will then be passed onto the next component of the application (the clustering engine).
No comments:
Post a Comment