You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Ritesh Kumar (Avanade)" <v-...@microsoft.com.INVALID> on 2018/06/26 17:48:12 UTC
Create an index field of type dictionary
Hello,
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.
Thanks
[OCP Logo]
Ritesh
Avanade Infrastructure Team
+1 (425) 588-7853 v-kurite@micrsoft.com<ma...@micrsoft.com>
One Commercial Partner - Digital Services
RE: Create an index field of type dictionary
Posted by "Ritesh Kumar (Avanade)" <v-...@microsoft.com.INVALID>.
Hey Eric,
Thanks for response, it was a Sitecore related modifications we had to do to make it work.
Thanks
Ritesh
-----Original Message-----
From: Erick Erickson [mailto:erickerickson@gmail.com]
Sent: Tuesday, June 26, 2018 10:52 AM
To: solr-user <so...@lucene.apache.org>
Subject: Re: Create an index field of type dictionary
Well, there's a multiValued field that's just a list of whatever (string, date, numeric, etc).
What's the use-case? This feels like an "XY" problem. a "dictionary" type is usually some kind of structure that how want to have operate in a specific manner. Solr doesn't really deal at that level, it just searches tokens.......
Best,
Erick
On Tue, Jun 26, 2018 at 10:48 AM, Ritesh Kumar (Avanade) < v-kurite@microsoft.com.invalid> wrote:
> Hello,
>
>
>
> 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.
>
>
>
> Thanks
>
>
>
> [image: OCP Logo]
>
> *Ritesh*
>
> Avanade Infrastructure Team
>
> +1 (425) 588-7853 v-kurite@micrsoft.com
>
> One Commercial Partner – Digital Services
>
>
>
>
>
Re: Create an index field of type dictionary
Posted by Erick Erickson <er...@gmail.com>.
Well, there's a multiValued field that's just a list of whatever (string,
date, numeric, etc).
What's the use-case? This feels like an "XY" problem. a "dictionary" type
is usually some kind of structure that how want to have operate in a
specific manner. Solr doesn't really deal at that level, it just searches
tokens.......
Best,
Erick
On Tue, Jun 26, 2018 at 10:48 AM, Ritesh Kumar (Avanade) <
v-kurite@microsoft.com.invalid> wrote:
> Hello,
>
>
>
> 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.
>
>
>
> Thanks
>
>
>
> [image: OCP Logo]
>
> *Ritesh*
>
> Avanade Infrastructure Team
>
> +1 (425) 588-7853 v-kurite@micrsoft.com
>
> One Commercial Partner – Digital Services
>
>
>
>
>
Re: Create an index field of type dictionary
Posted by Shawn Heisey <ap...@elyograg.org>.
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