[ 
https://issues.apache.org/jira/browse/SOLR-11111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16092024#comment-16092024
 ] 

Steve Rowe commented on SOLR-11111:
-----------------------------------

I wasn't able to randomize the {{tdouble}} fieldtype in {{schema-spatial.xml}}, 
because {{SpatialPointVectorFieldType}} requires {{TrieDoubleField}}:

{code:java|title=SpatialPointVectorFieldType.java}
  public void inform(IndexSchema schema) {
    FieldType fieldType = schema.getFieldTypeByName(numberFieldName);
    if( fieldType == null ) {
      throw new RuntimeException( "Can not find number field: "+ 
numberFieldName);
    }
    //TODO support other numeric types in the future
    if( !(fieldType instanceof TrieDoubleField) ) {
      throw new RuntimeException( "field type must be TrieDoubleField: "+ 
fieldType);
    }
    [...]
{code}

SpatialPointVectorFieldType has been deprecated in favor of 
LatLonPointSpatialField (which is points-based), so I don't think more work 
needs to be done for SpatialPointVectorFieldType.

> Randomize PointFields in collection1/conf/: schemasurround.xml, 
> schema-sql.xml, and schema-spatial.xml
> ------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-11111
>                 URL: https://issues.apache.org/jira/browse/SOLR-11111
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Steve Rowe
>            Assignee: Steve Rowe
>             Fix For: 7.0
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to