I want to do a more like this query to return similar documents to a document that already exists in my index.
I don't know the documents ID ahead of time, but I do know a term value that I can use to look it up (also, it may or may not exist)
Is there a way to avoid having to do 2 requests? E.g. more like this where term = value, rather than find term = value, extract ID, pass to more like this
I think you will need to run a query to fetch the id, I also did something similar using MLT and as I wanted to use the id of the document I had to make another query to fetch the id.
The other option is to "like" a document instead of the id.
Anyway, let's wait to see if anyone has another option.
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.