Hello,
I am trying to create a field type in managed-schema (Solr 8.11).
The data post to solr is:
{
    "add-field-type": {
        "name": "myNewTxtField",
        "class": "solr.TextField",
        "analyzer": {
            "type": "query",
            "tokenizer": {
                "class": "solr.WhitespaceTokenizerFactory"
            }
        }
    }
}

After Solr gets the message, it makes the following change in
managed-schema:
  <fieldType name="myNewTxtField" class="solr.TextField">
    <analyzer>
      <tokenizer class="solr.WhitespaceTokenizerFactory"/>
    </analyzer>
  </fieldType>

I could not find type="query" next to analyzer.
In many fieldTypes such as "text_general", there is type="...." after
analyzer. I do not know why I could not do it by using Schema API.
Many thanks in advance.
Zhiqing

Reply via email to