I need to do a time period-period match like this:
Data has 2 time field such as d_from and d_to.
Now given param p_from and param p_to.
I need to get records which SHOULD satisfy following conditions:
p_from gte d_from and(MUST) p_from lte d_to
p_to gte d_from and(MUST) p_to lte d_to
p_from <= d_from and(MUST) p_to >= d_to
1 and 2 is easy to do it seems just use bool-should-range is ok, but condition 3 makes me confused, it need two params satisfy their own condition by MUST then SHOULD with 1 and 2...
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.