I need to be able to find documents in the index that are the the closest
color to the RGB values in a request using Euclidean distance, what is the
best way to achieve this in ElasticSearch?
You could use function score query and provide calculation of distance as
script, maybe?
Am Donnerstag, 17. Oktober 2013 15:35:30 UTC+2 schrieb dan:
I have RGB color values stored in my index.
color: [
{
red: 50
green: 73
blue: 93
}]
I need to be able to find documents in the index that are the the closest
color to the RGB values in a request using Euclidean distance, what is the
best way to achieve this in Elasticsearch?
You could use function score query and provide calculation of distance as script, maybe?
Am Donnerstag, 17. Oktober 2013 15:35:30 UTC+2 schrieb dan:
I have RGB color values stored in my index.
color: [
{
red: 50
green: 73
blue: 93
}]
I need to be able to find documents in the index that are the the closest color to the RGB values in a request using Euclidean distance, what is the best way to achieve this in Elasticsearch?
On Thursday, October 17, 2013 2:59:23 PM UTC+1, Andrej Rosenheinrich wrote:
You could use function score query and provide calculation of distance as
script, maybe?
Am Donnerstag, 17. Oktober 2013 15:35:30 UTC+2 schrieb dan:
I have RGB color values stored in my index.
color: [
{
red: 50
green: 73
blue: 93
}]
I need to be able to find documents in the index that are the the closest
color to the RGB values in a request using Euclidean distance, what is the
best way to achieve this in Elasticsearch?
On Thursday, October 17, 2013 2:59:23 PM UTC+1, Andrej Rosenheinrich wrote:
You could use function score query and provide calculation of distance as script, maybe?
Am Donnerstag, 17. Oktober 2013 15:35:30 UTC+2 schrieb dan:
I have RGB color values stored in my index.
color: [
{
red: 50
green: 73
blue: 93
}]
I need to be able to find documents in the index that are the the closest color to the RGB values in a request using Euclidean distance, what is the best way to achieve this in Elasticsearch?
On Thursday, October 17, 2013 2:59:23 PM UTC+1, Andrej Rosenheinrich wrote:
You could use function score query and provide calculation of distance as
script, maybe?
Am Donnerstag, 17. Oktober 2013 15:35:30 UTC+2 schrieb dan:
I have RGB color values stored in my index.
color: [
{
red: 50
green: 73
blue: 93
}]
I need to be able to find documents in the index that are the the
closest color to the RGB values in a request using Euclidean distance, what
is the best way to achieve this in Elasticsearch?
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
On Thursday, October 17, 2013 2:59:23 PM UTC+1, Andrej Rosenheinrich wrote:
You could use function score query and provide calculation of distance as script, maybe?
Am Donnerstag, 17. Oktober 2013 15:35:30 UTC+2 schrieb dan:
I have RGB color values stored in my index.
color: [
{
red: 50
green: 73
blue: 93
}]
I need to be able to find documents in the index that are the the closest color to the RGB values in a request using Euclidean distance, what is the best way to achieve this in Elasticsearch?
I coded it up as a Lucene query some time ago (don't have the source to
hand currently) and results were OK but had some oddities.
I ended up thinking that a data-gathering exercise via Mechanical Turk or
similar might be a useful exercise to train a better model that accounts
for the quirks in human perception.
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.