Another possibly simpler solution is just to mark the field in the mapping
with index set to not_analyzed (which is the same as using keyword
analyzed). Note, in the same, make sure the analyzer is set to that, not
just the index_analyzer. And as David pointed out, you will have to set the
mapping when you create the index, and then index the data.
On Sun, Dec 11, 2011 at 8:53 AM, David Pilato david@pilato.fr wrote:
No. You have to define the mapping for a document type before you send the
first doc.
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.