We have a fashion index. We do not want the word "shorts" to be stemmed to "short" in a search for shorts. "short" delivers "short dresses", "short sleeve shirts", etc. Can someone help provide and example of the rule(s) we would need to use to improve/narrow this search to "shorts" only?
You can use the keyword marker filter to protect words from being stemmed. It is important that you place this filter before your stemmer in the analysis chain.
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.