Hi Hoss,

I'm confused.  If type="float" is just a symbolic name, how does Solr knows
to index the data of field "weight" as "float"?  What about for "date" per
this example:

    <field name="last_modified" type="date" indexed="true" stored="true"/>

How does Solr applies date-range queries such as:

    last_modified:[NOW-1YEAR/DAY TO NOW/DAY+1DAY]

I was always under the impression that there are primitive field-types but
looks like that's not the case?

Thanks

Steve

On Wed, Apr 22, 2015 at 12:59 PM, Chris Hostetter <hossman_luc...@fucit.org>
wrote:

>
> : To be clear, here is an example of a type from Solr's schema.xml:
> :
> :     <field name="weight" type="float" indexed="true" stored="true"/>
> :
> : Here, the "type" is "float".  I'm looking for the complete list of
> : out-of-the-box types supported.
>
> what you are asking about are just symbolic names that come from <type/>
> definitions in the schema.xml -- there is no complete list.  you can add
> any arbitrary <type name="foo" .../> you want to your schema, and now
> you've introduced a new "type" that solr supports.
>
> As far as the list of all "FieldType" *classes* that exist in solr out of
> the box (ie: the list of classes that can be specified in <type/>
> declarations, that is a bit more straight forward...
>
>
> https://cwiki.apache.org/confluence/display/solr/Field+Types+Included+with+Solr
>
>
>
> -Hoss
> http://www.lucidworks.com/
>

Reply via email to