Hi Waldyr,

An example of changing the _text_ analyzer by first creating a new field type, 
and then changing the _text_ field to use the new field type (after starting 
Solr 6.1 with “bin/solr start -e schemaless”):

-----
PROMPT$ curl -X POST -H 'Content-type: application/json’ \
    http://localhost:8983/solr/gettingstarted/schema --data-binary '{
  "add-field-type": {
    "name": "my_new_field_type",
    "class": "solr.TextField",
    "analyzer": {
      "charFilters": [{
        "class": "solr.HTMLStripCharFilterFactory"
      }],
      "tokenizer": {
        "class": "solr.StandardTokenizerFactory"
      },
      "filters":[{
          "class": "solr.WordDelimiterFilterFactory"
        }, {
          "class": "solr.LowerCaseFilterFactory"
      }]}},
  "replace-field": {
    "name": "_text_",
    "type": "my_new_field_type",
    "multiValued": "true",
    "indexed": "true",
    "stored": "false"
  }}’
-----

PROMPT$ curl http://localhost:8983/solr/gettingstarted/schema/fields/_text_

-----
{
  "responseHeader”:{ […] },
  "field":{
    "name":"_text_",
    "type":"my_new_field_type",
    "multiValued":true,
    "indexed":true,
    "stored":false}}
-----

--
Steve
www.lucidworks.com

> On Jul 15, 2016, at 12:54 PM, Waldyr Neto <wafen...@gmail.com> wrote:
> 
> Hy, How can i configure the analyzer for the _text_ field?

Reply via email to