Skip to main content Skip to complementary content

searchSuggest method

app.searchSuggest(qTerms, qOptions, callback)

Method used to return suggestions of words from the values entered in the search. Acts as a helper for the searchAssociations method.

Since:
  • 1.1

Parameters

Name Type Description
qTerms Array

Terms to search for.

qOptions Object

Optional. Search options. Properties:

Name Type Description
qSearchFields Array List of search fields.
callback function

Optional.

Callback method.

Returns

A promise of a RPC reply.

Tip noteFor more information regarding a promise, see http://docs.angularjs.org/api/ng.$q.

Example

app.searchSuggest(["se"], {}, function(reply) {
	var str = "";
		reply.qResult.qSuggestions.forEach(function(sugg){
			str += sugg.qValue + ' ';
		});
		alert(str);
	});

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!