code: function findRecord(store, fieldName, text) {
        var index = store.find(fieldName, text);
        if (index === -1) {
          throw new Error('Text: ' + text + ' not found for fieldName: ' + fieldName);
        }
        return index;
      }
docs: Record for text for specific field.
  Only the first found result is used.
  @param store
  @param fieldName
  @param text
  @return {*}