Yes, it can be used.
But, what if I have other such facets on different other fields. Use of
copyField will require me to create a dedicated copy field for each such
facet.

I want to know if there is any other option where I do not have to add
multiple copy fields.

On Thu, Dec 6, 2018 at 7:06 PM Mikhail Khludnev <m...@apache.org> wrote:

> Hello, Ritesh.
>
> It's obviously done with copyField.
>
> On Thu, Dec 6, 2018 at 4:26 PM Ritesh Kumar <
> ritesh.ku...@hotwaxsystems.com>
> wrote:
>
> > Hello team,
> >
> > I am trying to prepare facet on a field of type string. The facet data
> will
> > be shown according to the user's query on this very field.
> >
> > <field name="fieldName" type="string" indexed="true" stored="true"
> > required="false" multiValued="false"/>
> >
> >
> > As this field is of type string, it works fine with case sensitive
> query. I
> > want to be able to query on this field irrespective of the case.
> >
> > I tried changing the field type to string_ci as defined below
> >
> > <fieldType name="string_ci" class="solr.TextField" sortMissingLast="true"
> > omitNorms="true">
> >     <analyzer type="query">
> >         <tokenizer class="solr.KeywordTokenizerFactory"/>
> >         <filter class="solr.LowerCaseFilterFactory"/>
> >     </analyzer>
> > </fieldType>
> >
> > <field name="fieldName" type="string_ci" indexed="true" stored="true"
> > required="false" multiValued="false"/>
> >
> > Now, in this case, I am able to perform a case-insensitive query but the
> > facet values are being shown in lowercase.
> >
> > I want to be able to perform a case-insensitive query on this field but
> > show the original data.
> > Is there anything I can do achieve this.
> >
> > Best,
> >
> > --
> > Ritesh Kumar
> >
>
>
> --
> Sincerely yours
> Mikhail Khludnev
>

Reply via email to