To specify the query, use es.query param or the second string param in
esRDD. The doc provide detailed information.
In a future version, we'll throw an exception if a query is specified in
the index.
On Apr 30, 2015 5:03 PM, "Israel Klein" israel.klein@gmail.com wrote:
Hi,
I am using es-spark_2.11-2.1.0.Beta4 on Spark 1.3.1 shell against
elasticsearch 1.4.4.
Doing:
import org.elasticsearch.spark._
val esRdd = sc.esRDD("my_index/my_type?q=fields:field_name")
esRdd.take(1)
results in getting the whole document source and not just the specified
field.
It was my mistake in the question. First I have tried the above and it did
not work at all(obviously) but then I have tried
val esRdd = sc.esRDD("my_index/my_type"," ?fields=field_name") as well with
the mentioned above result.
On Thursday, April 30, 2015 at 5:47:15 PM UTC+3, Costin Leau wrote:
To specify the query, use es.query param or the second string param in
esRDD. The doc provide detailed information.
In a future version, we'll throw an exception if a query is specified in
the index.
On Apr 30, 2015 5:03 PM, "Israel Klein" <israel...@gmail.com <javascript:>>
wrote:
Hi,
I am using es-spark_2.11-2.1.0.Beta4 on Spark 1.3.1 shell against
elasticsearch 1.4.4.
Doing:
import org.elasticsearch.spark._
val esRdd = sc.esRDD("my_index/my_type?q=fields:field_name")
esRdd.take(1)
results in getting the whole document source and not just the specified
field.
It was my mistake in the question. First I have tried the above and it did
not work at all(obviously) but then I have tried
val esRdd = sc.esRDD("my_index/my_type"," ?fields=field_name") as well with
the mentioned above result.
On Thursday, April 30, 2015 at 5:47:15 PM UTC+3, Costin Leau wrote:
To specify the query, use es.query param or the second string param in
esRDD. The doc provide detailed information.
In a future version, we'll throw an exception if a query is specified in
the index.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.