Question about java api with multiple filters combination

Hi,

I have 3 different filters OrFilterBuilder, RangeFilterBuilder,
PrefixFilterBuilder. I'd like to combine those filter and have an "and"
relation among them. FilterBuilders.andFilter(filter1, filter2, filter3)
would work; however, filter1, filter2, filter3 could be null. Is there a
better way of combining those rather than nested if else?

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d6a88417-0b44-4212-be5a-bf09d5390e03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.