If I search for records with tag "cool", I will get all 3 of these.
Is there a way for me to get the record that only has the tag "cool" and
nothing else?
You can index the number of tags as a separate field and while you are
searching require that all tags match your query and the number of tags in
the record is equal to the number of tags in the query. So, assuming that
tag_num contains the number of tags in the record, your query for "cool"
can be expressed as "tag:cool AND tag_num:1"
On Friday, March 1, 2013 11:52:07 AM UTC-5, Mike wrote:
If I search for records with tag "cool", I will get all 3 of these.
Is there a way for me to get the record that only has the tag "cool" and
nothing else?
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.