diff --git a/ads/search.py b/ads/search.py
index f1b5205..97727de 100644
--- a/ads/search.py
+++ b/ads/search.py
@@ -399,6 +399,12 @@ class SearchQuery(BaseQuery):
             else:
                 self._query["fl"] = ["id"] + self._query["fl"]
 
+            # remove bibtex and metrics as a safeguard against
+            # https://github.com/andycasey/ads/issues/73
+            for field in ["bibtex", "metrics"]:
+                if field in self._query["fl"]:
+                    self.query["fl"].remove(field)
+
             # Format and add kwarg (key, value) pairs to q
             if kwargs:
                 _ = [u'{}:"{}"'.format(k, v) for k, v in six.iteritems(kwargs)]

Bibtex issue
<!--- Provide a general summary of the issue in the Title above -->

## Expected Behavior
Hello,

I would like to extract the url of the ADS page associated to each entry. I got it from the bibtex entry, but bibtex does always return none when query from the field. More specifically, querying with the following:
papers = list(ads.SearchQuery(author=myname, max_pages=6,fl=['citation_count', 'bibcode', 'title', 'bibtex','year','author']))

does always provide a None for papers[0].bibtex (as well as other entries)

Am I making some error?

Thanks!

Alex



<!--- If you're describing a bug, tell us what should happen -->
<!--- If you're suggesting a change/improvement, tell us how it should work -->

## Current Behavior
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior -->

## Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
<!--- or ideas how to implement the addition or change -->

## Steps to Reproduce (for bugs)
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
1.
2.
3.
4.

## Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->

## Your Environment
<!--- Include as many relevant details about the environment you experienced the bug in -->
* Version used (hint: `python -c "import ads; print(ads.__version__)"`)
* Python version (hint: `python -V`)


diff --git a/ads/tests/test_search.py b/ads/tests/test_search.py
index 3213d42..f27f581 100644
--- a/ads/tests/test_search.py
+++ b/ads/tests/test_search.py
@@ -245,6 +245,10 @@ class TestSearchQuery(unittest.TestCase):
         with six.assertRaisesRegex(self, AssertionError, ".+mutually exclusive.+"):
             SearchQuery(q="start", start=0, cursorMark="*")
 
+        # test that bibtex/metrics is excluded from sq.query['fl']
+        sq = SearchQuery(q="star", fl=["f1", "bibtex", "f2", "metrics", "f3"])
+        self.assertEqual(sq.query['fl'], ["id", "f1", "f2", "f3"])
+
 
 class TestSolrResponse(unittest.TestCase):
     """

pip install -e .
parse_log_pytest
requirements.txt
pytest pytest-cov
apt-get update apt-get install -y gcc
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
-e git+https://github.com/andycasey/ads.git@ce1dce7fb2695d6436c112926709fe1a63e881cd#egg=ads
certifi==2025.1.31
charset-normalizer==3.4.1
coverage==7.8.0
exceptiongroup==1.2.2
httpretty==0.8.10
idna==3.10
iniconfig==2.1.0
MarkupSafe==3.0.2
mock==5.2.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
requests==2.32.3
six==1.17.0
tomli==2.2.1
urllib3==2.3.0
Werkzeug==3.1.3

name: ads
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
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - 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=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - certifi==2025.1.31
      - charset-normalizer==3.4.1
      - coverage==7.8.0
      - exceptiongroup==1.2.2
      - httpretty==0.8.10
      - idna==3.10
      - iniconfig==2.1.0
      - markupsafe==3.0.2
      - mock==5.2.0
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - pytest-cov==6.0.0
      - requests==2.32.3
      - six==1.17.0
      - tomli==2.2.1
      - urllib3==2.3.0
      - werkzeug==3.1.3
prefix: /opt/conda/envs/ads

ads/tests/test_search.py::TestSearchQuery::test_init
ads/tests/test_search.py::TestArticle::test_cached_properties ads/tests/test_search.py::TestArticle::test_get_field ads/tests/test_search.py::TestSearchQuery::test_iter ads/tests/test_search.py::TestSearchQuery::test_rows_rewrite
ads/tests/test_search.py::TestArticle::test_equals ads/tests/test_search.py::TestArticle::test_init ads/tests/test_search.py::TestArticle::test_print_methods ads/tests/test_search.py::TestSolrResponse::test_articles ads/tests/test_search.py::TestSolrResponse::test_default_article_fields ads/tests/test_search.py::TestSolrResponse::test_init ads/tests/test_search.py::TestSolrResponse::test_load_http_response ads/tests/test_search.py::Testquery::test_init
ads/search.py
ads/search.py