lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomás Fernández Löbbe <tomasflo...@gmail.com>
Subject Re: field type=string vs field type=text
Date Thu, 12 May 2011 21:13:14 GMT
Hi, my recommendation: To quickly understand the difference between those
two different field types, index one document using string and text fields,
then facet on those fields and you will see how the terms were indexed.

Using one field type or the other will depend on what you want to do with
that field.

On Thu, May 12, 2011 at 5:18 PM, Gora Mohanty <gora@mimirtech.com> wrote:

> On Thu, May 12, 2011 at 8:23 PM, chetan <guptakachetan@gmail.com> wrote:
> > What is the difference between setting a fields type to string vs setting
> it
> > to text.
> >
> > e.g.
> > <field name="PATH" type="string" indexed="false" stored="true"/>
> > or
> > <field name="PATH" type="text" indexed="false" stored="true"/>
> [...]
>
> Please take a closer look at the fieldType definitions towards the
> beginning of the default schema.xml. The "text" type has tokenizers,
> and analyzers applied to it, while the "string" type does no processing
> of the input data.
>
> Regards,
> Gora
>

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