Could you please help me in the correct direction? I want to achieve the following:
If a user inputs "how do i" as a search query, I want to display a list of the phrases or queries that are the most relevant suggestion based on the index, ie "how do i straighten bananas", etc. If more search using a specific query, this query, if the index contains relevant info, be closer to the top.
When indexing I have a whole webpage as input for the suggesions, so the suggestions should be based on the entire web page's content.
When the user starts typing, the completions should be given, so just part of words should trigger suggestions (phrases, or words - all from the index).
Can I just dump the entire body of the html (only the text portion) into a field, and use this field for the suggestion? How do I get the previous searched-context as part of the suggestions?
Any suggestion would be welcome (actually a list would be preferable)!