New to ES here. Is it possible to retrieve just the snippets ("highlights")
instead of the entire document for a search?
--
New to ES here. Is it possible to retrieve just the snippets ("highlights")
instead of the entire document for a search?
--
Hi,
You can disable _source in your mapping, set store to yes for the field you want to highlight.
See http://www.elasticsearch.org/guide/reference/mapping/core-types.html for more information about mapping.
You can also let _source enabled, but in your query, ask for specific fields instead of _source (default). See: http://www.elasticsearch.org/guide/reference/api/search/fields.html
Does it help?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 4 déc. 2012 à 07:13, A Zed exmaple@gmail.com a écrit :
New to ES here. Is it possible to retrieve just the snippets ("highlights") instead of the entire document for a search?
--
--
I feel like an idiot now. I could just set the "fields" field in the query
to fetch everything else.
Thanks!
On Monday, December 3, 2012 11:03:18 PM UTC-8, David Pilato wrote:
Hi,
You can disable _source in your mapping, set store to yes for the field
you want to highlight.See Elasticsearch Platform — Find real-time answers at scale | Elastic for
more information about mapping.You can also let _source enabled, but in your query, ask for specific
fields instead of _source (default). See:
Elasticsearch Platform — Find real-time answers at scale | ElasticDoes it help?
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocsLe 4 déc. 2012 à 07:13, A Zed <exm...@gmail.com <javascript:>> a écrit :
New to ES here. Is it possible to retrieve just the snippets
("highlights") instead of the entire document for a search?--
--
© 2020. All Rights Reserved - Elasticsearch
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.