Java 全文搜索类似

Java 全文搜索类似,java,google-app-engine,full-text-search,search-engine,Java,Google App Engine,Full Text Search,Search Engine,假设我想查询字符串“this is first title”,我希望它返回几乎类似的字符串,如下所示 this is first title this is second title this is third title 使用QueryOptions可以查询“几乎相似”的字符串吗 您可以搜索“this is”标题(在双引号中包含“this is”将其视为一个短语),这应该适用于您的特定用例。 如果要在特定字段中搜索,请说“摘要”,您可以指定要缩小搜索范围的字段,例如:summary:“这是”

假设我想查询字符串“this is first title”,我希望它返回几乎类似的字符串,如下所示

this is first title
this is second title
this is third title
使用
QueryOptions
可以查询“几乎相似”的字符串吗

您可以搜索
“this is”标题
(在双引号中包含“this is”将其视为一个短语),这应该适用于您的特定用例。 如果要在特定字段中搜索,请说“摘要”,您可以指定要缩小搜索范围的字段,例如:
summary:“这是”summary:title

另请参见此问题的答案:。 您可以使用“~”操作符重写查询以包含复数,这是搜索类似文本的一种方式。

您可以搜索
“this is”标题(将“this is”括在双引号中,将其视为一个短语),这应该适用于您的特定用例。
如果要在特定字段中搜索,请说“摘要”,您可以指定要缩小搜索范围的字段,例如:
summary:“这是”summary:title

另请参见此问题的答案:。 您可以使用“~”运算符重写查询以包含复数,这是搜索类似文本的一种方法