In my application, I have a map of <term, weight> pairs that I would like
to index into the same field, say "f", where the term should be indexed "as
is", ie, un-analyzed, and the weight should be indexed as the payload for
that term. I only need payloads for that field, and not term vectors. Each
document would have a different map of <term, weight> pairs to be indexed
as term and payload into the field "F". I am using ES 1.4, with the Java
API for both indexing and searching.
I had been doing this (indexing and scoring) directly with Lucene thus far.
However, after reading the ElasticSearch documentation, I could not find
any API, or even an approach, for how to achieve payload indexing in
ElasticSearch
I did find some documentation on how to use scripting for extracting and
using the payloads for scoring; this part would work, but I would prefer a
Java API approach, because it would avoid the scripting performance hit.
Any help on this, especially the indexing part, would be appreciated.
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.