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

kiran commented on SOLR-10843:
------------------------------

pinging [~erickerickson] and [~joel.bernstein] for visibility 

> Enable docValues for boolean and disable for location field types
> -----------------------------------------------------------------
>
>                 Key: SOLR-10843
>                 URL: https://issues.apache.org/jira/browse/SOLR-10843
>             Project: Solr
>          Issue Type: Task
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Schema and Analysis
>    Affects Versions: 6.6
>            Reporter: kiran
>            Priority: Minor
>
> * Doc values should be enabled for 'boolean'  types in the example schemas. 
> (I don't see a reason to why not because it is enabled for all supported 
> field types)
> * Doc values should be disabled for 'location' field type since it is not 
> supported
> From the sample schema: 
> {code}
>   <fieldType name="location" class="solr.LatLonPointSpatialField" 
> docValues="true"/>
> {code}
> The code returns error message when fields of these types are accessed 
> through export handler
> {code}
> Caused by: java.lang.RuntimeException: java.io.IOException: --> 
> http://127.0.0.1:62525/solr/testIndexing-917a9d98-e4de-447f-a28a-219ed099b340_shard1_replica1/:Export
>  fields must either be one of the following types: 
> int,float,long,double,string,date,boolean
>     at 
> com.lucidworks.spark.query.TupleStreamIterator.hasNext(TupleStreamIterator.java:51)
>     at 
> scala.collection.convert.Wrappers$JIteratorWrapper.hasNext(Wrappers.scala:42)
>     at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
>     at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:408)
>     at 
> org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIterator.processNext(Unknown
>  Source)
>     at 
> org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
>     at 
> org.apache.spark.sql.execution.WholeStageCodegenExec$$anonfun$8$$anon$1.hasNext(WholeStageCodegenExec.scala:377)
>     at 
> org.apache.spark.sql.execution.SparkPlan$$anonfun$2.apply(SparkPlan.scala:231)
>     at 
> org.apache.spark.sql.execution.SparkPlan$$anonfun$2.apply(SparkPlan.scala:225)
>     at 
> org.apache.spark.rdd.RDD$$anonfun$mapPartitionsInternal$1$$anonfun$apply$25.apply(RDD.scala:827)
>     at 
> org.apache.spark.rdd.RDD$$anonfun$mapPartitionsInternal$1$$anonfun$apply$25.apply(RDD.scala:827)
>     at 
> org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)
>     at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
>     at org.apache.spark.rdd.RDD.iterator(RDD.scala:287)
>     at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
>     at org.apache.spark.scheduler.Task.run(Task.scala:99)
>     at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:322)
>     at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at java.lang.Thread.run(Thread.java:745)
> Caused by: java.io.IOException: --> 
> http://127.0.0.1:62525/solr/testIndexing-917a9d98-e4de-447f-a28a-219ed099b340_shard1_replica1/:Export
>  fields must either be one of the following types: 
> int,float,long,double,string,date,boolean
>     at 
> org.apache.solr.client.solrj.io.stream.SolrStream.read(SolrStream.java:235)
>     at 
> com.lucidworks.spark.query.TupleStreamIterator.fetchNextTuple(TupleStreamIterator.java:82)
>     at 
> com.lucidworks.spark.query.TupleStreamIterator.hasNext(TupleStreamIterator.java:47)
>     ... 19 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to