you need to use a bool query.
bool is used to combine a few conditions together.
So your query will be something like (just high level pseudo code) -->
Can I make just one query_string? This is input from search bar by user so I have no idea what user will search for. If he writes wildcard or name of attribute
Not sure what your requirements are.
You can create predefined filters and let the users enable/disable them whenever they need to.
Also, they can edit these filters if that's a requirement.
I
I have around 30 different attributes taht user can use to filter. He can write name of attribute or I set default fields to search in, he can do range query, wildcard query... so I can't create predefined filters, so many cobinations.
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.