Is it possible to access _id from within an implementation
of AbstractDoubleSearchScript?
doc.containsKey("_id") returns true,
but doc.get("_id").asInstanceOf[StringDocFieldData].getValue is null.
I need the doc id to look up some info in another database and compute a
score for the doc.
By default, the ID is not indexed, but you can configure it to be indexed,
and then you can access it. Are you sure that you want to access a database
though? It will be a big perf hit to do it for each hit aggregated.
Is it possible to access _id from within an implementation
of AbstractDoubleSearchScript?
doc.containsKey("_id") returns true,
but doc.get("_id").asInstanceOf[StringDocFieldData].getValue is null.
I need the doc id to look up some info in another database and compute a
score for the 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.