Hey there, text expansion queries essentially take the semantic meaning of the words and join them together into a massive OR query. So that makes terms like “not ___” not really work the way you want it to. If you need to exclude results I’d probably suggest looking into creating Boolean queries and filtering out things you don’t want. However you’re not going to get that right out of the box with text expansion alone and depending on your use case you may need to do some front end work to formulate the query in the way you want.
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.