I have the following problem, I have a document say
foo {
bar:1
--other fields--
}
I want to call a query that will return results based on other fields but
with bar been unique at the result set, meaning if there are more then 1
document matching the query that has bar == 1 I want to return only 1
results, say the first result.
This is like doing a group by and only taking the first record at the each
group
I have the following problem, I have a document say
foo {
bar:1
--other fields--
}
I want to call a query that will return results based on other fields but
with bar been unique at the result set, meaning if there are more then 1
document matching the query that has bar == 1 I want to return only 1
results, say the first result.
This is like doing a group by and only taking the first record at the each
group
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.