You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2017/07/18 19:12:00 UTC
[jira] [Commented] (SOLR-11111) Randomize PointFields in
collection1/conf/: schemasurround.xml, schema-sql.xml, and
schema-spatial.xml
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org