Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Lucene existdb中的XQuery模糊搜索_Lucene_Xquery_Fuzzy Search_Exist Db - Fatal编程技术网

Lucene existdb中的XQuery模糊搜索

Lucene existdb中的XQuery模糊搜索,lucene,xquery,fuzzy-search,exist-db,Lucene,Xquery,Fuzzy Search,Exist Db,我们使用existdbbase存储各种xml文档,并使用xquery在这些文档上执行搜索。这是xml文档的示例: 雌鹿 约翰 eXist db的全文搜索索引构建在。这个问题在Lucene bug tracker(请参阅)和基于它构建的其他产品(如ElasticSearch(请参阅))中报告过,并且在Lucene 5.3中使用进行了修复 为了使eXist从这一改进中获益,eXist需要将其Lucene库从eXist当前版本Lucene 4.10.4升级到Lucene 5.3或更高版本。到目前为

我们使用existdbbase存储各种xml文档,并使用xquery在这些文档上执行搜索。这是xml文档的示例:


雌鹿
约翰

eXist db的全文搜索索引构建在。这个问题在Lucene bug tracker(请参阅)和基于它构建的其他产品(如ElasticSearch(请参阅))中报告过,并且在Lucene 5.3中使用进行了修复

为了使eXist从这一改进中获益,eXist需要将其Lucene库从eXist当前版本Lucene 4.10.4升级到Lucene 5.3或更高版本。到目前为止,Lucene 4.x和5.x+之间的一些API不兼容使得eXist无法实现这一跳跃(见公开问题),但我相信这一挑战并非不可逾越

同时,作为一种解决方法,您可以添加一个额外的查询来查找精确匹配,并仅返回此查询,或作为模糊匹配上方的第一个命中返回。根据您的应用程序,您可能需要从用户提供的输入中去掉瓷砖,但这应该可以实现您的目标