diff --git a/pipeline/summary.py b/pipeline/summary.py
index 982c7f5..c3a4360 100644
--- a/pipeline/summary.py
+++ b/pipeline/summary.py
@@ -29,6 +29,7 @@ def index(requests, solr_url):
                                       request.get('authors', []))),
                 'author_name': list(map(itemgetter('name'),
                                         request.get('authors', []))),
+                'author': list(map(join_author, request.get('authors', [])))
             }
             solr.write(doc)
 
@@ -209,4 +210,8 @@ def split_author(author):
     except ValueError:
         return
     if mitid and name:
-        return {'mitid': int(mitid), 'name': name}
+        return {'mitid': mitid, 'name': name}
+
+
+def join_author(author):
+    return "%s:%s" % (author.get('mitid', ''), author.get('name', ''))

Add combined author/mit id field to solr during summary
Changes in the summary script depend on a string field with `author:mitid`. This is in addition to the two separate `author` and `mitid` fields.
diff --git a/tests/integration/test_cli.py b/tests/integration/test_cli.py
index 34933b2..757d504 100644
--- a/tests/integration/test_cli.py
+++ b/tests/integration/test_cli.py
@@ -62,7 +62,13 @@ def test_index_adds_mongo_records_to_solr(runner, solr_port, mongo_port):
     r = solr.search('*:*')
     assert len(r) == 2
     doc = next(iter(r))
-    assert doc['title'] == 'The Foobar'
+    assert doc == {'title': 'The Foobar', 'handle': 'foobar', 'country': 'USA',
+                   'time': '2015-01-01T00:00:00Z',
+                   'dlc_display': ['Stuff', 'Things'],
+                   'dlc_canonical': ['Dept of Stuff', 'Dept of Things'],
+                   'author_id': ['1234', '5678'],
+                   'author_name': ['Bar, Foo', 'Baz, Foo'],
+                   'author': ['1234:Bar, Foo', '5678:Baz, Foo']}
 
 
 @pytest.mark.usefixtures('load_mongo_records', 'load_solr_records')
diff --git a/tests/unit/test_summary.py b/tests/unit/test_summary.py
index b86c192..034d163 100644
--- a/tests/unit/test_summary.py
+++ b/tests/unit/test_summary.py
@@ -75,7 +75,8 @@ def test_index_maps_mongo_request_to_solr(solr, mongo_req):
         'dlc_display': ['Stuff n Such', 'Other Things'],
         'dlc_canonical': ['Dept of Stuff', 'Dept of Things'],
         'author_id': ['1234', '7890'],
-        'author_name': ['Captain Snuggles', 'Muffinpants']
+        'author_name': ['Captain Snuggles', 'Muffinpants'],
+        'author': ['1234:Captain Snuggles', '7890:Muffinpants']
     }]
 
 
@@ -126,7 +127,7 @@ def test_authors_filters_out_authors_with_empty_mitid(mongo):
 
 
 def test_get_author_returns_solr_query():
-    assert get_author({'mitid': 1234, 'name': 'Fluffy'}) == \
+    assert get_author({'mitid': '1234', 'name': 'Fluffy'}) == \
         ('author_id:"1234"', {'rows': 0, 'group': 'true',
                               'group.field': 'handle', 'group.ngroups': 'true'})
 
@@ -181,8 +182,8 @@ def test_create_handle_creates_mongo_insert(handle_result):
                           {'country': 'ISL', 'downloads': 4}],
             'dates': [{'date': '2015-01-01', 'downloads': 3},
                       {'date': '2015-02-01', 'downloads': 5}],
-            'parents': [{'mitid': 1234, 'name': 'Fluffy'},
-                        {'mitid': 5678, 'name': 'Captain Snuggles'}]
+            'parents': [{'mitid': '1234', 'name': 'Fluffy'},
+                        {'mitid': '5678', 'name': 'Captain Snuggles'}]
         }
     }
 
@@ -214,9 +215,17 @@ def test_dictify_converts_facet_count_to_dictionary():
 
 
 def test_split_author_turns_string_into_compound_field():
-    assert split_author('1234:Foo Bar') == {'mitid': 1234, 'name': 'Foo Bar'}
+    assert split_author('1234:Foo Bar') == {'mitid': '1234', 'name': 'Foo Bar'}
 
 
 def test_split_author_returns_none_for_invalid_author():
     assert split_author(':Foo Bar') is None
     assert split_author('Foo Bar') is None
+
+
+def test_join_author_joins_author_parts():
+    assert join_author({'name': 'Cat, Lucy', 'mitid': '1234'}) == \
+        '1234:Cat, Lucy'
+
+def test_join_author_uses_empty_string_for_missing_items():
+    assert join_author({'name': 'Cat, Lucy'}) == ':Cat, Lucy'

pip install -e .
parse_log_pytest
requirements.txt
pytest mock mongobox
3.4
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
apache-log-parser==1.7.0
arrow==0.6.0
attrs==22.2.0
certifi==2021.5.30
click==5.1
futures==2.2.0
geoip2==2.2.0
importlib-metadata==4.8.3
iniconfig==1.1.1
maxminddb==1.2.0
mock==5.2.0
mongobox==0.1.8
-e git+https://github.com/MITLibraries/oastats-backend.git@ed278663c240daf3a71571f94812bc9f5b2da9dd#egg=OAStats_Pipeline
packaging==21.3
pluggy==1.0.0
py==1.11.0
pycountry==1.15
pymongo==3.0.3
pyparsing==3.1.4
pysolr==3.3.2
pytest==7.0.1
python-dateutil==2.4.2
PyYAML==3.11
requests==2.7.0
six==1.9.0
tomli==1.2.3
typing_extensions==4.1.1
ua-parser==0.4.1
user-agents==1.0.1
zipp==3.6.0

name: oastats-backend
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - apache-log-parser==1.7.0
      - arrow==0.6.0
      - attrs==22.2.0
      - click==5.1
      - futures==2.2.0
      - geoip2==2.2.0
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - maxminddb==1.2.0
      - mock==5.2.0
      - mongobox==0.1.8
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pycountry==1.15
      - pymongo==3.0.3
      - pyparsing==3.1.4
      - pysolr==3.3.2
      - pytest==7.0.1
      - python-dateutil==2.4.2
      - pyyaml==3.11
      - requests==2.7.0
      - six==1.9.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - ua-parser==0.4.1
      - user-agents==1.0.1
      - wheel==0.24.0
      - zipp==3.6.0
prefix: /opt/conda/envs/oastats-backend

tests/unit/test_summary.py::test_index_maps_mongo_request_to_solr tests/unit/test_summary.py::test_create_handle_creates_mongo_insert tests/unit/test_summary.py::test_split_author_turns_string_into_compound_field tests/unit/test_summary.py::test_join_author_joins_author_parts tests/unit/test_summary.py::test_join_author_uses_empty_string_for_missing_items
tests/unit/test_summary.py::test_index_adds_requests_to_solr tests/unit/test_summary.py::test_query_solr_merges_query_params tests/unit/test_summary.py::test_query_solr_queries_solr tests/unit/test_summary.py::test_query_solr_sets_default_params tests/unit/test_summary.py::test_get_author_returns_solr_query tests/unit/test_summary.py::test_create_author_creates_mongo_insert tests/unit/test_summary.py::test_get_dlc_returns_solr_query tests/unit/test_summary.py::test_create_dlc_creates_mongo_insert tests/unit/test_summary.py::test_get_handle_returns_solr_query tests/unit/test_summary.py::test_get_overall_returns_solr_query tests/unit/test_summary.py::test_create_overall_creates_mongo_insert tests/unit/test_summary.py::test_dictify_converts_facet_count_to_dictionary tests/unit/test_summary.py::test_split_author_returns_none_for_invalid_author
pipeline/summary.py
pipeline/summary.py