Indexing data with comment

Is there any way in ES to index the data with comment(comment part is to be avoided from indexing ). By this I mean to say that if i have data like this:

"TechCrunch is a group-edited blog that profiles the companies, products and events defining and transforming creative LinkedIn profiles appears to be over. //this is comment// "

So while indexing the data i want ES to index the data but ignore the content which are enclosed in //this is comment// that is nothing but to ignore some text which has been given as comment.

Yes, you can add comments. They will appear in _source.

curl -XPUT '0:9200/test/doc/1' -d '{ "Hello" : "World" /* comment */ }'

curl '0:9200/test/doc/1'
{"_index":"test","_type":"doc","_id":"1","_version":1,"found":true,
"_source" : { "Hello" : "World" /* comment */ }}

There is also the _meta tag

for storing additional information in the mapping e.g. for driving your
custom document content codecs.

Jörg

On Tue, Apr 22, 2014 at 11:20 AM, Prashant Agrawal <
prashant.agrawal@paladion.net> wrote:

Is there any way in ES to index the data with comment(comment part is to be
avoided from indexing ). By this I mean to say that if i have data like
this
"TechCrunch is a group-edited blog that profiles the companies, products
and events defining and transforming creative LinkedIn profiles appears to
be over. / //this is comment// /"

So while indexing the data i want ES to index the data but ignore the
content which are enclosed in ///this is comment/// that is nothing but
to
ignore some text which has been given as comment.

--
View this message in context:
http://elasticsearch-users.115913.n3.nabble.com/Indexing-data-with-comment-tp4054550.html
Sent from the Elasticsearch Users mailing list archive at Nabble.com.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/1398158423440-4054550.post%40n3.nabble.com
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHqXf1a1dh63%2B_evyOUuHV_4LCvvHE%2BE%3DKd2U6gRo5RYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.