when i put on searchText only one word its search well but if i put two words i dont get any result. Should i separate on searchText every word and append to termQuery? Or write something like QueryBuilders.queryString(“title:test or test2”) ?
Thanks to advise.
You can use the normal text query or the queryString query which you
have already mentioned and which supports more advanced features but
is probably not suited for normal "search box inputs".
when i put on searchText only one word its search well but if i put two
words i dont get any result. Should i separate on searchText every word and
append to termQuery? Or write something like
QueryBuilders.queryString(“title:test or test2”) ?
Thanks to advise.
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.