Hi Steve,

Yes, I know the schema API, however I do not want to specify the field type
problematically for every single field.

I would like to be able to specify the field type when it is being added
(similar to the name postfixes, but without affecting the field names).

Thanks,
Peter


2016-05-17 17:08 GMT+02:00 Steve Rowe <sar...@gmail.com>:

> Hi Peter,
>
> Are you familiar with the Schema API?: <
> https://cwiki.apache.org/confluence/display/solr/Schema+API>
>
> You can use it to create fields, field types, etc. prior to ingesting your
> data.
>
> --
> Steve
> www.lucidworks.com
>
> > On May 17, 2016, at 11:05 AM, Horváth Péter Gergely <
> peter.gergely.horv...@gmail.com> wrote:
> >
> > Hi All,
> >
> > By default Solr allows you to define the type of a dynamic field by
> > appending a post-fix to the name itself. E.g. creating a color_s field
> > instructs Solr to create a string field. My understanding is that if we
> do
> > this, all queries must refer the post-fixed field name as well. So
> > instead of a query like color:"red", we will have to write something like
> > color_s:"red" -- and so on for other field types as well.
> >
> > I am wondering if it is possible to specify the data type used for a
> field
> > in Solr 6.0.0, without having to modify the field name. (Or at least in a
> > way that would allow us to use the original field name) Do you have any
> > idea, how to achieve this? I am fine, if we have to specify the field
> type
> > during the insertion of a document, however, I do not want to keep using
> > post-fixes while running queries...
> >
> > Thanks,
> > Peter
>
>

Reply via email to