lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: Create an index field of type dictionary
Date Thu, 28 Jun 2018 14:04:48 GMT
On 6/26/2018 11:48 AM, Ritesh Kumar (Avanade) wrote:
> Is it possible to create an index field of type *dictionary*. I have
> seen stringarry, datetime, bool etc. but I am looking for a field type
> like list of objects.

The types that you find in a Solr schema are just made-up sequences of
characters.  You can have a type named "bugblatter" if you want.  The
"string" type found in the example schemas could be changed so it uses a
class that's made for storing numbers.  This is not a configuration
error, although it might cause big problems with trying to use Solr,
especially if it is changed on an existing index.

In the Solr reference guide, there is a list of classes available by
default for use in a fieldType definition.

https://lucene.apache.org/solr/guide/7_3/field-types-included-with-solr.html

Erick has raised a good point.  What do you want to a dictionary field
type to *do*?

It looks like Sitecore is a large piece of software that happens to
include Solr.  Chances are good that they have customized their Solr
install and they will be in the best position to help you with it.

Thanks,
Shawn


Mime
View raw message