I am trying to limit the fields that are returned from a query but i cant seem to get the .Fields() part of the query detecting the objects in my class:
var result = client.Search<MyClass>(s => s
.Size(10000)
.Fields(f => f.MyField)
.Query(q => q
When i type .Fields(f => f. I only get the choice to select Fields or Field (not my class fields)
Thank you very much.. I must have been looking at the 1.x documentation. Thanks for the tip on scrolling - i already have most of my queries using scroll but in this case i am only going to bring back 2 small fields and the doc count should hover around 3000.
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.