Hello,
one of my index doesn't need any searching. All I need there is just to get
document's source by ID. Document is a free structure, could have any kind
of fields which I don't know upfront.
Could you please help me with mapping? Strangely, I couldn't find any way
to say: don't index my document no matter structure it would be, just store
it with some ID.
Thanks in advance,
Eugene
Disable dynamic mapping when you create the index (index.mapper.dynamic
== 0)
Enable storing of the _source
That should be it. You will the need to use the GET API to access.
Best Regards,
Paul
On Tuesday, January 29, 2013 10:12:08 AM UTC-7, Eugene Strokin wrote:
Hello,
one of my index doesn't need any searching. All I need there is just to
get document's source by ID. Document is a free structure, could have any
kind of fields which I don't know upfront.
Could you please help me with mapping? Strangely, I couldn't find any way
to say: don't index my document no matter structure it would be, just store
it with some ID.
Thanks in advance,
Eugene
Correct me if I'm wrong, but looks like it works.
Thanks,
Eugene
On Tuesday, January 29, 2013 12:48:21 PM UTC-5, ppearcy wrote:
Hey,
You should do the following:
Disable dynamic mapping when you create the index (index.mapper.dynamic
== 0)
Enable storing of the _source
That should be it. You will the need to use the GET API to access.
Best Regards,
Paul
On Tuesday, January 29, 2013 10:12:08 AM UTC-7, Eugene Strokin wrote:
Hello,
one of my index doesn't need any searching. All I need there is just to
get document's source by ID. Document is a free structure, could have any
kind of fields which I don't know upfront.
Could you please help me with mapping? Strangely, I couldn't find any way
to say: don't index my document no matter structure it would be, just store
it with some ID.
Thanks in advance,
Eugene
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.