mirror of https://github.com/apache/lucene.git
LUCENE-3795: return empty array for TwoDoublesStrategy
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1301206 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
faca588e93
commit
2d28a5e9a7
|
@ -75,7 +75,7 @@ public class TwoDoublesStrategy extends SpatialStrategy<TwoDoublesFieldInfo> {
|
|||
if( !ignoreIncompatibleGeometry ) {
|
||||
throw new IllegalArgumentException( "TwoDoublesStrategy can not index: "+shape );
|
||||
}
|
||||
return null;
|
||||
return new IndexableField[0]; // nothing (solr does not support null)
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue