I am using OpenSearchServer v1.2.4. I want to access OpenSearchServer database field like "autocomplete" or Spell check etc. How Can i do that? The OpenSearchServer api only provides title, meta, url fields and some others via XML. Please suggest me query/search pattern to get autocomplete field.
You can easily control the returned fields by editing the query. To do that, go to the query tab panel.
Spellchecking
To activate the spellcheck, edit the "search" query and go to the spellcheck tab panel. If you are using the web template, use the field "contentExact" or "titleExact". The spellcheck module will build a dictionary by extracting the words present in this field. There is three algorithms available: Levensthein, Jaro-Winkler, NGramDistance.
As soon as you have set up the spellcheck settings and saved the query, you will be able to use it using the XML over HTTP API. Most of the time, the XML will include spellcheck suggestions. You have to decide when you show the suggestion to the users. You may display the suggestions when the search returns no document.
Autocompletion
The role of the "autocomplete" field is to collect all the expressions available in the indexed documents (web pages).
Here is a common way to build an autocompletion feature: