lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "@Nandan@" <nandanpriyadarshi...@gmail.com>
Subject Reg:- StrField Analyzer Issue
Date Thu, 15 Jun 2017 01:23:22 GMT
Hi ,

I am using Apache Solr for do advanced searching with my Big Data.

When I am creating Solr core , then by default for text field , it is
coming as TextField data type and class.

Can you please tell me how to change TextField to StrField. My table
contains record into English as well as Chinese .

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<schema name="autoSolrSchema" version="1.5">

  <types>

    <fieldType class="org.apache.solr.schema.StrField" name="StrField">

      <analyzer>

        <tokenizer class="solr.StandardTokenizerFactory"/>

        <filter class="solr.LowerCaseFilterFactory"/>

      </analyzer>

    </fieldType>

    <fieldType class="org.apache.solr.schema.UUIDField" name="UUIDField"/>

    <fieldType class="org.apache.solr.schema.TrieIntField"
name="TrieIntField"/>

  </types>

  <fields>

    <field indexed="true" multiValued="false" name="title" stored="true"
type="StrField"/>

    <field indexed="true" multiValued="false" name="isbn" stored="true"
type="StrField"/>

    <field indexed="true" multiValued="false" name="publisher"
stored="true" type="StrField"/>

    <field indexed="true" multiValued="false" name="author" stored="true"
type="StrField"/>

    <field docValues="true" indexed="true" multiValued="false" name="id"
stored="true" type="UUIDField"/>

    <field docValues="true" indexed="true" multiValued="false" name="date"
stored="true" type="TrieIntField"/>

  </fields>


Please guide me for correct StrField.

Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message