<commit_before>Solr Plugin
-----------

Solr is a popular documentation database.

**Maven**::
   
   <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-solr</artifactId>
      <version>${geotools.version}</version>
    </dependency>

Connection Parameters
^^^^^^^^^^^^^^^^^^^^^

The following connection parameters are available:

+-------------------------+----------------------------------------------------+
| Param                   | Description                                        |
+=========================+====================================================+
| "solr_url"              | Url to a SOLR server CORE                          |
+-------------------------+----------------------------------------------------+
| "layer_mapper"          | Controls how documents are mapped to layers        |
+-------------------------+----------------------------------------------------+
| "layer_name_field"      | Field used in SOLR that holds the layer names      |
+-------------------------+----------------------------------------------------+
| "namespace"             | Namespace prefixs                                  |
+-------------------------+----------------------------------------------------+

Example use:

.. code-block:: java

        Map map = new HashMap();
        map.put("solr_url", new URL("http://localhost:8080/solr"));
        map.put("layer_name_field", "layer_type");
        map.put(SolrDataStoreFactory.NAMESPACE.key, "namesapce");

       <commit_msg>Updating docs after field deprecation<commit_after>Solr Plugin
-----------

Solr is a popular documentation database.

**Maven**::
   
   <dependency>
      <groupId>org.geotools</groupId>
      <artifactId>gt-solr</artifactId>
      <version>${geotools.version}</version>
    </dependency>

Connection Parameters
^^^^^^^^^^^^^^^^^^^^^

The following connection parameters are available:

+-------------------------+----------------------------------------------------+
| Param                   | Description                                        |
+=========================+====================================================+
| "solr_url"              | Url to a SOLR server CORE                          |
+-------------------------+----------------------------------------------------+
| "layer_mapper"          | Controls how documents are mapped to layers        |
+-------------------------+----------------------------------------------------+
| "layer_name_field"      | Field used in SOLR that holds the layer names      |
+-------------------------+----------------------------------------------------+
| "namespace"             | Namespace prefixs                                  |
+-------------------------+----------------------------------------------------+

Notes: "layer_mapper" and "layer_name_field" are deprecated, a single layer is exposed now by default, use 
the ``SolrLayerConfiguration`` class to configure more layers

Example use:

.. code-block:: java

        Map map = new HashMap();
        map.put("solr_url", new URL("http://localhost:8080/solr"));
        map.put(SolrDataStoreFactory.NAMESPACE.key, "namesapce");

       

{'fraction_non_alphanumeric': 0.3876845743009739, 'fraction_numerical': 0.0025133521834747093, 'mean_word_length': 1.0961158657011192, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6062835', 'n_tokens_mistral': 691, 'n_tokens_neox': 627, 'n_words': 158}