Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户输入名词的复数形式时,如何返回单数形式。例如。在我的网站产品搜索中,如果用户输入“Gucci low cutpant”,结果应该返回“Gucci low cut pant”。我无法使用全文搜索,因为此列不是唯一的。
答案仍然是全文搜索。我相信你误解了这些限制。表上需要一个唯一索引(当然你有其中之一);它不必位于您有兴趣包含在全文索引中的列上。我什至不确定这将如何工作,因为唯一索引的键大小不能 > 900 字节,并且全文搜索当然适用于无法声明为唯一的列(例如最大类型)。 .