old_contents: from data_explorer.models.field import Field
  from data_explorer.models.fields_response import FieldsResponse
  
  from flask import current_app
  from elasticsearch import Elasticsearch
  from elasticsearch_dsl import Search
  
  
  def fields_get():
      """fields_get
  
      Returns fields.
  
      rtype: FieldsResponse
      """
  
      es = Elasticsearch(current_app.config['ELASTICSEARCH_URL'])
      search = Search(using=es, index=current_app.config['FIELDS_INDEX_NAME'])
      # Default number of results is 10. We want to get 100.
      # TODO(malathir): Change this to case insensitive sorting.
      search = search.sort('name.keyword')
      search = search[0:100]
      response = search.execute()
      response_fields = response.to_dict()
  
      fields = []
      for field in response_fields['hits']['hits']:
          if "description" in field["_source"]:
              fields.append(
                  Field(
                      name=field["_source"]["name"],
                      elasticsearch_name=field["_id"],
                      description=field["_source"]["description"]))
          else:
              fields.append(
                  Field(
                      name=field["_source"]["name"],
                      elasticsearch_name=field["_id"]))
  
      return FieldsResponse(fields=fields)
  
new_contents: from data_explorer.models.field import Field
  from data_explorer.models.fields_response import FieldsResponse
  
  from flask import current_app
  from elasticsearch import Elasticsearch
  from elasticsearch_dsl import Search
  
  
  def fields_get():
      """fields_get
  
      Returns fields.
  
      rtype: FieldsResponse
      """
  
      es = Elasticsearch(current_app.config['ELASTICSEARCH_URL'])
      search = Search(using=es, index=current_app.config['FIELDS_INDEX_NAME'])
      # TODO(malathir): Change this to case insensitive sorting.
      search = search.sort('name.keyword')
      # Default number of results is 10, which isn't enough.
      search = search[0:10000]
      response = search.execute()
      response_fields = response.to_dict()
  
      fields = []
      for field in response_fields['hits']['hits']:
          if "description" in field["_source"]:
              fields.append(
                  Field(
                      name=field["_source"]["name"],
                      elasticsearch_name=field["_id"],
                      description=field["_source"]["description"]))
          else:
              fields.append(
                  Field(
                      name=field["_source"]["name"],
                      elasticsearch_name=field["_id"]))
  
      return FieldsResponse(fields=fields)
  
subject: Return more than 100 fields (#212)