The side to which you want to align the control.
Can take three values: "left", "right" or "none". If set to "left" or "right", the controls are
arranged one by one, starting from the left or right edge of the map, respectively. If set to "none", the controls are
positioned according to the values of the left, right, bottom and top options, relative to the boundaries of the map.
See also the description of the position option.

The layout's outward appearance changes based on the control's data, state and options.
The control, in turn, reacts to layout interface events and changes
the values of fields for control.SearchControl.state depending on the commands received.

The maximum width of the control in different states.
If a number is specified, it is assumed that the control has the same maximum dimensions in all states.
If an array is specified, it will be interpreted as the maximum width in different states from the lesser to the greater.
The number of states is set in the instance of the class control.Manager, which is usually a
field of Map.controls, via the "states" option.
Default search control layout width for large state can be set in range from 280 to 660 pixels.
By default, the controls have three states ['small', 'medium', 'large'].

If false, the map center is automatically placed so
that the object is entirely visible; if true, the map center is not changed when showing the found object.
If noCentering = true and noPlacemark = true are set, no visible changes will occur on the map
when search results are clicked.

If false, a placemark with an open balloon is automatically added
to the center of the found object; if true, it is not. If noCentering = true and noPlacemark = true are set,
no visible changes will occur on the map when search results are clicked.
This option doesn't work with the yandex#search provider.

'yandex#search' - Search for toponyms and businesses. When searching for businesses, the following options don't work:
"noPlacemark", "noCentering", "noSelect", "strictBounds", "kind". Moreover, if the "results" option is not specified for the control,
the map, by default, cannot show more than 20 objects simultaneously.

Represents the margins from the boundaries of the visible area of the map
when displaying search results. The option works only if the value of noCentering is false.
If a single number is set, it is applied to each side.
If two numbers are set, they are the horizontal and vertical margins, respectively.
If an array of four numbers is set, they are the top, right, bottom, and left margins.
When the "useMapMargin" option is enabled, the "zoomMargin" value is combined with the values that were calculated in the margins manager map.margin.Manager.

// Example 2.
// If the control was already added to the map using a key from control.storage,
// you can get its instance using the control.Manager.get method
// for control.Manager.
var searchControl = myMap.controls.get('searchControl');
searchControl.events.add('submit', function () {
console.log('request: ' + searchControl.getRequestString());
}, this);

3.

// Example 3.
// Enabling the business search in a control that is already added to the map.
// If the control was already added to the map using a key from control.storage,
// you can get its instance using the control.Manager.get method.
var searchControl = myMap.controls.get('searchControl');
searchControl.options.set('provider', 'yandex#search');

getResultsArray

getResultsCount

getSelectedIndex

{Integer} getSelectedIndex()

Returns index of the selected element.

hideResult

{} hideResult()

Hides the result shown on the map.

Example:

// If we showed a result on the map using control.SearchControl.showResult,
// or it was displayed automatically during search, we can hide it, for example,
// when the button is clicked.
var myButton = new ymaps.control.Button("Hide results");
myButton.events.add('click', function () {
searchControl.hideResult();
}, this);
myMap.controls.add(myButton, { selectOnClick: false });

// Finding Moscow and outputting the "name" field
// from the first result to the console.
searchControl.search('Moscow').then(function () {
var geoObjectsArray = searchControl.getResultsArray();
if (geoObjectsArray.length) {
// Outputs the "name" property of the first geo object in the search results.
console.log(geoObjectsArray[0].properties.get('name'));
}
});

// We want to always show the first result,
// regardless of the number of objects
// found on the map (1 or more).
var searchControl = new ymaps.control.SearchControl({
// This option disables automatically selecting search results.
options: { noSelect: true }
});
searchControl.events.add('load', function (event) {
// Verifying that this event is not completing results loading,
// but that at least one result was found for the query.
if (!event.get('skip') && searchControl.getResultsCount()) {
searchControl.showResult(0);
}
});